[NTG-context] Bad interaction between new interpretation of underscore and modules

Hans Hagen pragma at wxs.nl
Fri Jan 14 12:01:02 CET 2011

On 14-1-2011 10:15, Mathieu Boespflug wrote:
> Thank you for the solution, Wolfgang.  But it seems rather painful to
> have to replace every occurrence of _ in my definitions module with
> the very verbose \normalsubscript just because it's a module. The new
> default catcode for _ introduces extra difficulty when defining math
> macros. Would it be possible to at least have a macro to revert to the
> old behaviour? Also, I'm still stumped as to why modules make any
> difference here. I would have expected this problem to also show up if
> the definitions were made inline at the top of the source file for the
> document.

just add a space before the _ when it directly follows a \cs, so

... $\cs _2$ ...

but regular text like

... $x_2$ ...

can be left as it is


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

More information about the ntg-context mailing list