[NTG-context] \to broken in figure captions

Aditya Mahajan adityam at umich.edu
Wed Apr 26 22:00:00 CEST 2006


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


More information about the ntg-context mailing list