From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18760 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Peter_M=FCnster?= Newsgroups: gmane.comp.tex.context Subject: special macro problem again... Date: Mon, 7 Mar 2005 21:00:42 +0100 (CET) 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 X-Trace: sea.gmane.org 1110236221 23256 80.91.229.2 (7 Mar 2005 22:57:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2005 22:57:01 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 07 23:57:01 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 1D8R9f-000641-L3 for gctc-ntg-context-518@m.gmane.org; Mon, 07 Mar 2005 23:56:51 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 115EA127EA; Tue, 8 Mar 2005 00:02:32 +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 16570-01; Tue, 8 Mar 2005 00:02:29 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 43BDF127E8; Mon, 7 Mar 2005 23:58:45 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 55CB7127E8 for ; Mon, 7 Mar 2005 23:58:43 +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 16163-03 for ; Mon, 7 Mar 2005 23:58:42 +0100 (CET) Original-Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by ronja.ntg.nl (Postfix) with ESMTP id 68A26127E5 for ; Mon, 7 Mar 2005 23:58:42 +0100 (CET) Original-Received: from gaston.free.fr (rennes-1-62-147-99-109.dial.proxad.net [62.147.99.109]) by postfix4-2.free.fr (Postfix) with ESMTP id 57A232DA6F0 for ; Mon, 7 Mar 2005 21:02:53 +0100 (CET) Original-Received: by gaston.free.fr (Postfix, from userid 500) id 5325413C050; Mon, 7 Mar 2005 21:00:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.free.fr (Postfix) with ESMTP id 32672148082 for ; Mon, 7 Mar 2005 21:00:42 +0100 (CET) X-X-Sender: peter@gaston.free.fr Original-To: ConTeXt list 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:18760 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18760 Hello, with the help by Hans, I've got a nice little macro "\MyMacro". Now, I get another problem, when using "\doifmode" in the argument of this macro. This is the error message: ! Incomplete \iffalse And here the example file: \newcount\MyVersion \def\MyMacro#1{% \getgparameters[XXX][#1] \global\advance\MyVersion by 1 \bTR \expanded{\bTD \the\MyVersion \eTD} \expanded{\bTD \XXXDate \eTD}\eTR } \starttext \bTABLE \bTR \bTD Version \eTD \bTD Date \eTD \eTR \MyMacro{Date=1.2.2005} \MyMacro{Date=\doifmode{abc}{3.4.2005}} % this does not work \MyMacro{Date=5.6.2005} \eTABLE This works, but it is not so nice: \doifmodeelse{abc}{% \def\DateOne{1111}% \def\DateTwo{2222}% \def\DateThree{3333}}{% \def\DateOne{4444}% \def\DateTwo{5555}% \def\DateThree{6666}} \bTABLE \bTR \bTD Version \eTD \bTD Date \eTD \eTR \MyMacro{Date=\DateOne} \MyMacro{Date=\DateTwo} \MyMacro{Date=\DateThree} \eTABLE \stoptext Could you help please? Cheers, Peter -- http://pmrb.free.fr/contact/