![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------