From: taco hoekwater <taco@elvenkind.com>
Subject: Re: \mathematics
Date: Mon, 14 Aug 2006 20:11:27 +0200 [thread overview]
Message-ID: <44E0BCCF.1040509@elvenkind.com> (raw)
In-Reply-To: <651881340608140846h49dbe038gb1f3ee4fbc1f7908@mail.gmail.com>
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
next prev parent reply other threads:[~2006-08-14 18:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-14 15:46 \mathematics Boris Tschirschwitz
2006-08-14 18:11 ` taco hoekwater [this message]
2006-08-14 18:31 ` \mathematics Boris Tschirschwitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44E0BCCF.1040509@elvenkind.com \
--to=taco@elvenkind.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).