From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18832 Path: news.gmane.org!not-for-mail From: Nikolai Weibull Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt equivalent for \ensuremath? Date: Fri, 11 Mar 2005 15:57:16 +0100 Message-ID: <20050311145716.GC5540@puritan.pcp.ath.cx> References: <4010ecb891c7439727015208c6c6b11e@rna.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110553426 21972 80.91.229.2 (11 Mar 2005 15:03:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2005 15:03:46 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 11 16:03:45 2005 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 1D9lZG-0005Ty-Qr for gctc-ntg-context-518@m.gmane.org; Fri, 11 Mar 2005 15:56:47 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E821212862; Fri, 11 Mar 2005 15:57:20 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21319-08-3; Fri, 11 Mar 2005 15:57:17 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BFFF51285D; Fri, 11 Mar 2005 15:57:17 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 383BA1285D for ; Fri, 11 Mar 2005 15:57:17 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21319-08-2 for ; Fri, 11 Mar 2005 15:57:16 +0100 (CET) Original-Received: from mxfep01.bredband.com (mxfep01.bredband.com [195.54.107.70]) by ronja.ntg.nl (Postfix) with ESMTP id 6021F12848 for ; Fri, 11 Mar 2005 15:57:16 +0100 (CET) Original-Received: from puritan.pcp.ath.cx ([213.112.43.228] [213.112.43.228]) by mxfep01.bredband.com with ESMTP id <20050311145716.CHDY28780.mxfep01.bredband.com@puritan.pcp.ath.cx> for ; Fri, 11 Mar 2005 15:57:16 +0100 Original-Received: by puritan.pcp.ath.cx (Postfix, from userid 1000) id 8B105AE044; Fri, 11 Mar 2005 15:57:16 +0100 (CET) Original-To: mailing list for ConTeXt users Mail-Followup-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: <4010ecb891c7439727015208c6c6b11e@rna.nl> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: news.gmane.org gmane.comp.tex.context:18832 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18832 * Gerben Wierda (Mar 11, 2005 15:50): > I modeled this after the LaTeX sources because I had to move on: > \newcommand{\ensuremath}[1]{\ifmmode\expandafter\FirtsOfOne% > \else\expandafter\EnsuredMath\fi} \long\def\FirstOfOne#1{#1} > \long\def\EnsuredMath#1{$\relax#1$} > but is there a ConTeXt way of doing this? \mathematics{...}, nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}