From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30274 Path: news.gmane.org!not-for-mail From: taco hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: \mathematics Date: Mon, 14 Aug 2006 20:11:27 +0200 Message-ID: <44E0BCCF.1040509@elvenkind.com> References: <651881340608140846h49dbe038gb1f3ee4fbc1f7908@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1155579113 26956 80.91.229.2 (14 Aug 2006 18:11:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Aug 2006 18:11:53 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 14 20:11:50 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 1GCguh-0003rz-Lx for gctc-ntg-context-518@m.gmane.org; Mon, 14 Aug 2006 20:11:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 86DC81FD40; Mon, 14 Aug 2006 20:11:46 +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 15647-01; Mon, 14 Aug 2006 20:11:35 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BAB471FCEC; Mon, 14 Aug 2006 20:11:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8F9841FCEC for ; Mon, 14 Aug 2006 20:11:30 +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 14293-01 for ; Mon, 14 Aug 2006 20:11:25 +0200 (CEST) Original-Received: from post-24.mail.nl.demon.net (post-24.mail.nl.demon.net [194.159.73.194]) by ronja.ntg.nl (Postfix) with SMTP id 369091FCD3 for ; Mon, 14 Aug 2006 20:11:24 +0200 (CEST) Original-Received: from boo.demon.nl ([82.161.175.147]:2057 helo=[10.10.0.3]) by post-24.mail.nl.demon.net with esmtp (Exim 4.51) id 1GCguK-0004t3-OE for ntg-context@ntg.nl; Mon, 14 Aug 2006 18:11:24 +0000 User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) Original-To: mailing list for ConTeXt users In-Reply-To: <651881340608140846h49dbe038gb1f3ee4fbc1f7908@mail.gmail.com> 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:30274 Archived-At: 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