[NTG-context] \everymath and ' accent

Hans Hagen pragma at wxs.nl
Thu Jan 31 14:55:30 CET 2008


morgan.brassel at free.fr wrote:
> Hi everyone,
> 
> This topic has already been discussed on the list, but I didn't clearly
> understand the conclusion, so I'm asking again... It is not clear to me why the
> following
> 
> \everymath{\displaystyle}
> \starttext
> \startformula \frac{1}{A'} \stopformula
> $\frac{1}{A'}$
> \stoptext
> 
> fails with ConTeXt (on the ' inside $.$), while
> 
> \documentclass{minimal}
> \everymath{\displaystyle}
> \begin{document}
> \[ \frac{1}{A'} \]
> $\frac{1}{A'}$
> \end{document}
> 
> is ok with LaTeX.
> 
> The use of \everymath is to blame here, but why?

it's pretty dangerous to overload \everymath

maybe \appendtoks\displaystyle\to\everymath works

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list