From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30271 Path: news.gmane.org!not-for-mail From: "Boris Tschirschwitz" Newsgroups: gmane.comp.tex.context Subject: \mathematics Date: Mon, 14 Aug 2006 17:46:45 +0200 Message-ID: <651881340608140846h49dbe038gb1f3ee4fbc1f7908@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0962190180==" X-Trace: sea.gmane.org 1155570451 14261 80.91.229.2 (14 Aug 2006 15:47:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Aug 2006 15:47:31 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 14 17:47:29 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GCeec-0001LJ-PZ for gctc-ntg-context-518@m.gmane.org; Mon, 14 Aug 2006 17:47:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2BBB51FCFF; Mon, 14 Aug 2006 17:47:01 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14420-05; Mon, 14 Aug 2006 17:46:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 276501FC6B; Mon, 14 Aug 2006 17:46:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A2FBB1FC6B for ; Mon, 14 Aug 2006 17:46:50 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14421-04-2 for ; Mon, 14 Aug 2006 17:46:46 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by ronja.ntg.nl (Postfix) with SMTP id BB9F21FC6A for ; Mon, 14 Aug 2006 17:46:46 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id h2so113393nfe for ; Mon, 14 Aug 2006 08:46:46 -0700 (PDT) Original-Received: by 10.82.112.3 with SMTP id k3mr563251buc; Mon, 14 Aug 2006 08:46:45 -0700 (PDT) Original-Received: by 10.82.124.16 with HTTP; Mon, 14 Aug 2006 08:46:45 -0700 (PDT) Original-To: ntg-context@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30271 Archived-At: --===============0962190180== Content-Type: multipart/alternative; boundary="----=_Part_12551_4011472.1155570405885" ------=_Part_12551_4011472.1155570405885 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_12551_4011472.1155570405885 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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

------=_Part_12551_4011472.1155570405885-- --===============0962190180== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============0962190180==--