![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Nikolai Weibull wrote:
The following has to be added to nath for spacing to work correctly:
\def\mathematics#1{\relax\ifmmode#1\else$#1$\fi}
adding it anywhere after
\def$#1${\@@dollar{#1}}
seems to work fine. The problem is that $ is redefined, but \mathematics doesn't catch on so the spacing gets all messed up.
if you want to define it before: \def\mathematics {\relax \ifx\@@dollar\undefined \ifmmode#1\else$#1$\fi \else \@@dollar{#1} \fi} or after (catcode safe): \def\mathematics#1{\relax\ifmmode#1\else\@@dollar{#1}\fi} some i think that \@@dollar should be \NATHinlinemath Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------