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? Thanks in advance! Morgan
morgan.brassel@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 -----------------------------------------------------------------
Selon Hans Hagen
it's pretty dangerous to overload \everymath
Yes, I guess so! It was just to see the difference between LaTeX and ConTeXt in this case.
maybe \appendtoks\displaystyle\to\everymath works
Indeed, thank you! What I need actually is to modify $.$ locally (in a tikz picture) to produce \displaystyle maths. I don't know what is the best way to achieve this. Is it to use \appendtoks like above? Best regards, Morgan
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 -----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
participants (2)
-
Hans Hagen
-
morgan.brassel@free.fr