nath and \mathematics
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. Thanks, nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
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 -----------------------------------------------------------------
participants (2)
-
h h extern
-
Nikolai Weibull