[NTG-context] \mathematics

Boris Tschirschwitz tuchol at gmail.com
Mon Aug 14 20:31:31 CEST 2006


Cool, it works nicely here, too.

Thanks,
Boris.

On 8/14/06, taco hoekwater <taco at elvenkind.com> wrote:
>
> Boris Tschirschwitz wrote:
> > Hi.
> >
> > When writing math I like avoiding $ whenever possible by defining my
> > math operators with \mathematics, e.g.
> > \def\grp{\mathematics{G}}.
> > So far I was using this like I use \EnsureMath in LaTeX, but now I'm
> > running into problems in MPgraphics:
> > Texexec compiles the following file fine until I add the paragraph
> > called "Math in Math in MP". There it seems to somehow
> > choke on too many $ and \relax.
> >
> > Is there a better way to do such definitions?
>
> I've changed my local definition of \mathematics to:
>
>    \unexpanded\long\def\mathematics#1%
>      {\relax\ifmmode#1\else $#1$\fi}
>
> And that works nicely.
>
> Cheers, Taco
> _______________________________________________
> ntg-context mailing list
> ntg-context at ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ntg.nl/pipermail/ntg-context/attachments/20060814/4bce0886/attachment.html 


More information about the ntg-context mailing list