ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Boris Tschirschwitz" <tuchol@gmail.com>
Subject: \mathematics
Date: Mon, 14 Aug 2006 17:46:45 +0200	[thread overview]
Message-ID: <651881340608140846h49dbe038gb1f3ee4fbc1f7908@mail.gmail.com> (raw)


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

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?

Thanks,
Boris.

PS: There's already a problem in the second to last paragraph where the G is
not set in math mode any more.


The example file:

\def\grp{\mathematics{G}}
\starttext
Test.

Running text:

A group \grp

Math:

$\grp$

$\grp_{\grp}$

Text in MP:

\startusableMPgraphic{groupone}
label(textext("\grp"),origin) ;
\stopusableMPgraphic

\useMPgraphic{groupone}

Math in MP:

\startusableMPgraphic{grouptwo}
label(textext("\mathematics{\grp}"),origin) ;
\stopusableMPgraphic

\useMPgraphic{grouptwo}

Math in Math in MP:

\startusableMPgraphic{groupthree}
label(textext("\mathematics{\grp_{\grp}}"),origin) ;
\stopusableMPgraphic

\useMPgraphic{groupthree}

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 1346 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 15:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-14 15:46 Boris Tschirschwitz [this message]
2006-08-14 18:11 ` \mathematics taco hoekwater
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=651881340608140846h49dbe038gb1f3ee4fbc1f7908@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).