From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29998 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Peter_M=FCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: \in Date: Sat, 5 Aug 2006 13:30:06 +0200 (CEST) Message-ID: References: <44D3E9EA.6010304@nibua-r.org> Reply-To: ntg-context@ntg.nl 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 1154777467 12176 80.91.229.2 (5 Aug 2006 11:31:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Aug 2006 11:31:07 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 05 13:31:06 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 1G9KMw-0004mx-AF for gctc-ntg-context-518@m.gmane.org; Sat, 05 Aug 2006 13:31:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 078891FF41; Sat, 5 Aug 2006 13:31:02 +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 28749-05; Sat, 5 Aug 2006 13:30:53 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3DA501FE5F; Sat, 5 Aug 2006 13:30:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 30AAE1FE5F for ; Sat, 5 Aug 2006 13:30: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 28748-06-2 for ; Sat, 5 Aug 2006 13:30:47 +0200 (CEST) Original-Received: from smtp.cegetel.net (mf00.sitadelle.com [212.94.174.67]) by ronja.ntg.nl (Postfix) with SMTP id B84971FE59 for ; Sat, 5 Aug 2006 13:30:47 +0200 (CEST) Original-Received: from gaston.pm (unknown [84.7.236.215]) by smtp.cegetel.net (Postfix) with ESMTP id EB4A61A49CA for ; Sat, 5 Aug 2006 13:30:46 +0200 (CEST) Original-Received: by gaston.pm (Postfix, from userid 500) id E289113C098; Sat, 5 Aug 2006 13:30:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.pm (Postfix) with ESMTP id DD6D81480DC for ; Sat, 5 Aug 2006 13:30:06 +0200 (CEST) X-X-Sender: peter@gaston.pm Original-To: mailing list for ConTeXt users In-Reply-To: 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:29998 Archived-At: On Sat, 5 Aug 2006, Aditya Mahajan wrote: > \def\myin[#1:#2]{ > \expandafter\ifx\csname in#1\endcsname\relax > \writestatus{warning}{referenceformat in#1 not defined} > \in[#1:#2] > \else > \csname in#1\endcsname[#1:#2] > \fi} And if you want to suppress unwanted spaces, you can add some "%": \def\myin[#1:#2]{% \expandafter\ifx\csname in#1\endcsname\relax \writestatus{warning}{referenceformat in#1 not defined}% \in[#1:#2]% \else \csname in#1\endcsname[#1:#2]% \fi} Cheers, Peter -- http://pmrb.free.fr/contact/