On 7/9/2018 11:39 AM, Wolfgang Schuster wrote:
Hi Alan,
you should at least limit the scope of the command to math mode
\appendtoks
\let\t\mathtext
\let\w\mathword
\to \everymathematics
something
\ifdefined\t \else \unexpanded\def\t{\mathortext\text\mathtext} \fi
\ifdefined\w \else \unexpanded\def\w{\mathortext\word\mathword} \fi
\appendtoks
\let\t\mathtext
\let\w\mathword
\to \everymathematics
because sometimes a \t or \w is part of an expansion so we need it to be
defined then (for instance, Alan loves to put lots of complex math in
textext)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________