ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* nath and \mathematics
@ 2004-11-17 20:18 Nikolai Weibull
  2004-11-17 21:16 ` h h extern
  0 siblings, 1 reply; 2+ messages in thread
From: Nikolai Weibull @ 2004-11-17 20:18 UTC (permalink / raw)


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);}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: nath and \mathematics
  2004-11-17 20:18 nath and \mathematics Nikolai Weibull
@ 2004-11-17 21:16 ` h h extern
  0 siblings, 0 replies; 2+ messages in thread
From: h h extern @ 2004-11-17 21:16 UTC (permalink / raw)


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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-17 21:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-17 20:18 nath and \mathematics Nikolai Weibull
2004-11-17 21:16 ` h h extern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).