[NTG-context] Macros which scan subscripts/superscripts in ConTeXt

Jairo A. del Rio jairoadelrio6 at gmail.com
Fri Jun 26 02:43:48 CEST 2020

Hi, list! I've seen the following in Stack Exchange:


The answer is:

\begin{gather}\mymathsym \\\mymathsym^{\mathrm{extrasup}}
\\\mymathsym_{\mathrm{extrasub}}^{\mathrm{extrasup}}   \end{gather}

Such a macro contextually defines a behavior for a subscript and a
superscript even if they aren't displayed in a specific order, so



have the same output, even if the intended behavior is not the typical
one (I could redefine it so subscripts change colors, for instance).
Although I could just port the macro using xparse-generic because it
works in ConTeXt too, how to define a macro like that the ConTeXt way,
i.e., using only ConTeXt macros?

Thank you in advance.

Jairo :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200625/d39669dc/attachment-0001.htm>

More information about the ntg-context mailing list