ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Boris Tschirschwitz" <tuchol@gmail.com>
Subject: Re: \mathematics
Date: Mon, 14 Aug 2006 20:31:31 +0200	[thread overview]
Message-ID: <651881340608141131j7be84f7r56b8b97aea476841@mail.gmail.com> (raw)
In-Reply-To: <44E0BCCF.1040509@elvenkind.com>


[-- Attachment #1.1: Type: text/plain, Size: 961 bytes --]

Cool, it works nicely here, too.

Thanks,
Boris.

On 8/14/06, taco hoekwater <taco@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@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>

[-- Attachment #1.2: Type: text/html, Size: 1452 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

      reply	other threads:[~2006-08-14 18:31 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 ` \mathematics taco hoekwater
2006-08-14 18:31   ` Boris Tschirschwitz [this message]

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=651881340608141131j7be84f7r56b8b97aea476841@mail.gmail.com \
    --to=tuchol@gmail.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).