From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18830 Path: news.gmane.org!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: ConTeXt equivalent for \ensuremath? Date: Fri, 11 Mar 2005 15:46:37 +0100 Message-ID: <4010ecb891c7439727015208c6c6b11e@rna.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1110552876 20032 80.91.229.2 (11 Mar 2005 14:54:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2005 14:54:36 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 11 15:54:35 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 1D9lP3-0004J3-PX for gctc-ntg-context-518@m.gmane.org; Fri, 11 Mar 2005 15:46:14 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B748E12854; Fri, 11 Mar 2005 15:46:45 +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 21032-09-3; Fri, 11 Mar 2005 15:46:42 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9BEC312851; Fri, 11 Mar 2005 15:46:42 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 41A5B12851 for ; Fri, 11 Mar 2005 15:46:41 +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 21032-09-2 for ; Fri, 11 Mar 2005 15:46:40 +0100 (CET) Original-Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by ronja.ntg.nl (Postfix) with ESMTP id 9DD0A12841 for ; Fri, 11 Mar 2005 15:46:40 +0100 (CET) Original-Received: from ii2.demon.nl ([82.161.98.36]:23061 helo=mail.rna.nl) by post-23.mail.nl.demon.net with esmtp (Exim 4.43) id 1D9lPU-00063n-Ic for ntg-context@ntg.nl; Fri, 11 Mar 2005 14:46:40 +0000 Original-Received: from [192.168.2.99] (hedwig.rna.nl [192.168.2.99]) by mail.rna.nl (Postfix) with ESMTP id B2C14665CE for ; Fri, 11 Mar 2005 15:46:39 +0100 (CET) Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.619.2) 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:18830 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18830 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? G