* Primes in mathmode — the neverending story
@ 2017-08-15 5:41 Henri
0 siblings, 0 replies; only message in thread
From: Henri @ 2017-08-15 5:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]
Dear list,
For reference here some old thread on the same(?) topic.
https://mailman.ntg.nl/pipermail/ntg-context/2017/088699.html
https://mailman.ntg.nl/pipermail/ntg-context/2017/088747.html
https://mailman.ntg.nl/pipermail/ntg-context/2017/088926.html
I noticed, that the placement of the prime now depends on the placement in the source code. If I
write \omega_n' the prime is placed in the exponent of the whole \omega_n atom rather than just the
\omega atom. MWE is below.
At the same time, I do not see why the Plain TeX behaviour of an active prime in mathmode was
abandoned, because if I simply backport this, everything seems to work fine.
Cheers, Henri
---
\starttext
\startformula
\omega_n' \neq \omega'_n
\stopformula
% ---
\catcode`@=11
% from plain.tex
\mathcode`\'="8000 % ^\prime
{\catcode`\'=\active \gdef'{^\bgroup\prim@s}}
\def\prim@s{\prime\futurelet\next\pr@m@s}
\def\pr@m@s{\ifx'\next\let\nxt\pr@@@s \else\ifx^\next\let\nxt\pr@@@t
\else\let\nxt\egroup\fi\fi \nxt}
\def\pr@@@s#1{\prim@s} \def\pr@@@t#1#2{#2\egroup}
\startformula
\omega_n' = \omega'_n
\stopformula
\stoptext
[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 7742 bytes --]
[-- Attachment #3: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-15 5:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-15 5:41 Primes in mathmode — the neverending story Henri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).