From: Henri <henrimenke@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Primes in mathmode — the neverending story
Date: Tue, 15 Aug 2017 17:41:05 +1200 [thread overview]
Message-ID: <1502775665.5007.92.camel@gmail.com> (raw)
[-- 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
___________________________________________________________________________________
reply other threads:[~2017-08-15 5:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1502775665.5007.92.camel@gmail.com \
--to=henrimenke@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).