In inline math, \to works fine (produces a right arrow), but in a figure caption all hell breaks loose. The culprit may be this redefinition of \to in enco-ini.tex: $ find texmf -name '*.tex' |xargs egrep -n '\\((e|g|)def|let)\\to\b' texmf/tex/context/base/core-pos.tex:642: %\edef\to {\POSprefix#1}% texmf/tex/context/base/enco-ini.tex:1565: {\appendtoks\let\to\everylowercase texmf/tex/context/base/enco-ini.tex:1570: {\appendtoks\let\to\everyuppercase [context : ver: 2006.04.17 23:14] This test file: \starttext \placefigure[abc]{ABC $n\to1$.}{} \input tufte \stoptext produces lots of errors beginning with ERROR: Missing control sequence inserted. --- TeX said --- <inserted text> \inaccessible <to be read again> 1 \convertargument #1\to #2->\dodoglobal \edef #2 {\detokenize {#1}} <argument> ABC $n\to 1 $. \docompletefloat ... \doglobal \convertargument #6 \to \asciititle \ifnofloat... <argument> ...abc}{figure}{ABC $n\to 1$.}\nextbox \else \docompletefloat {fi... ... l.2 \placefigure[abc]{ABC $n\to1$.}{} \input tufte
On Wed, 26 Apr 2006, Sanjoy Mahajan wrote:
In inline math, \to works fine (produces a right arrow), but in a figure caption all hell breaks loose.
The culprit may be this redefinition of \to in enco-ini.tex:
$ find texmf -name '*.tex' |xargs egrep -n '\\((e|g|)def|let)\\to\b' texmf/tex/context/base/core-pos.tex:642: %\edef\to {\POSprefix#1}% texmf/tex/context/base/enco-ini.tex:1565: {\appendtoks\let\to\everylowercase texmf/tex/context/base/enco-ini.tex:1570: {\appendtoks\let\to\everyuppercase
[context : ver: 2006.04.17 23:14]
This test file:
\starttext \placefigure[abc]{ABC $n\to1$.}{} \input tufte \stoptext
produces lots of errors beginning with [snip]
Replacing $...$ with \mathematics{...} works without errors. Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008
From: Aditya Mahajan
Replacing $...$ with \mathematics{...} works without errors.
Good suggestion -- also works here. Shouldn't $...$ be equivalent to \mathematics{...}? $$...$$ is deprecated relative to \startformula...\stopformula, so I wrote a Python script to convert the plain TeX form to the ConTexT-preferred form. However, I like $...$: It's compact and reading the source file is almost as easy as reading the printed file. With \mathematics scattered throughout the paragraphs it wouldn't be so easy, plus I'd have to convince Emacs to fontify the argument of \mathematics, whereas it already does that for $...$. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
participants (2)
-
Aditya Mahajan
-
Sanjoy Mahajan