From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27259 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Peter_M=FCnster?= Newsgroups: gmane.comp.tex.context Subject: using \doifmodeelse the right way Date: Wed, 19 Apr 2006 18:14:07 +0200 (CEST) Message-ID: 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 1145467589 15852 80.91.229.2 (19 Apr 2006 17:26:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 17:26:29 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 19 19:26:27 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 1FWGRK-0000gY-7n for gctc-ntg-context-518@m.gmane.org; Wed, 19 Apr 2006 19:26:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9DEC612772; Wed, 19 Apr 2006 19:26:05 +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 06501-04; Wed, 19 Apr 2006 19:26:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 63C411279D; Wed, 19 Apr 2006 18:52:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CF9311276F for ; Wed, 19 Apr 2006 18:52:47 +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 05765-09 for ; Wed, 19 Apr 2006 18:52:45 +0200 (CEST) Original-Received: from smtp.cegetel.net (mf00.sitadelle.com [212.94.174.67]) by ronja.ntg.nl (Postfix) with SMTP id 7868C12772 for ; Wed, 19 Apr 2006 18:52:45 +0200 (CEST) Original-Received: from gaston.pm (unknown [84.7.235.199]) by smtp.cegetel.net (Postfix) with ESMTP id E838A1A429C for ; Wed, 19 Apr 2006 18:52:42 +0200 (CEST) Original-Received: by gaston.pm (Postfix, from userid 500) id 09E7E13C113; Wed, 19 Apr 2006 18:14:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.pm (Postfix) with ESMTP id 0772D148182 for ; Wed, 19 Apr 2006 18:14:07 +0200 (CEST) X-X-Sender: peter@gaston.pm Original-To: ConTeXt list 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:27259 Archived-At: Hello, \externalfigure[prefix-\doifmodeelse{blub}{blub}{notblub}][width=0.5\textwidth] does not work. I tried some combination of \expanded, \unexpanded, \expandafter etc but without success. In the end, I write: \doifmodeelse{blub}{% \externalfigure[prefix-blub][width=0.5\textwidth]}{% \externalfigure[prefix-notblub][width=0.5\textwidth]} Is this the most elegant way, or do you know better? (I would prefer less redundancy) Cheers, Peter -- http://pmrb.free.fr/contact/