From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16004 Path: main.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Peter_M=FCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: High level user macro (howto?) Date: Tue, 10 Aug 2004 14:02:14 +0200 (CEST) Sender: ntg-context-bounces@ntg.nl Message-ID: References: <"m2hdtw92rn.fs f"@levana.de> <6.1.1.1.2.20040601200608.01eb9640@server-1> <"m2n032tvs8.fs f"@levana.de> <20040622161300.GA5608@swordfish> <34371.80.58.5.46.1087924408.squirrel@bitmail.bitmailer.com> <0D45B077-C4DA-11D8-972E-000A9595B57C@ensta.fr> <40D944A4.5030402@gmx.de> <43DEE2EE-C510-11D8-972E-000A9595B57C@ensta.fr> <72D4BC80-C612-11D8-9706-0030659899AA@fiee.net> <40DC4CDF.2090904@wxs.nl> <5CAF4C26-C756-11D8-AE54-000A95C38698@chello.fr> <20040628113217.2e Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1092139475 22370 80.91.224.253 (10 Aug 2004 12:04:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Aug 2004 12:04:35 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 10 14:04:26 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BuVMg-0001GT-00 for ; Tue, 10 Aug 2004 14:04:26 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4524A1277E; Tue, 10 Aug 2004 14:04:26 +0200 (CEST) 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 02912-04; Tue, 10 Aug 2004 14:04:23 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3C15C1276F; Tue, 10 Aug 2004 14:04:23 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 22AE01276F for ; Tue, 10 Aug 2004 14:04:22 +0200 (CEST) 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 03050-02 for ; Tue, 10 Aug 2004 14:04:21 +0200 (CEST) Original-Received: from postfix4-1.free.fr (unknown [213.228.0.62]) by ronja.ntg.nl (Postfix) with ESMTP id 8AA371276D for ; Tue, 10 Aug 2004 14:04:21 +0200 (CEST) Original-Received: from gaston.free.fr (rennes-1-62-147-98-98.dial.proxad.net [62.147.98.98]) by postfix4-1.free.fr (Postfix) with ESMTP id 4DE2B16F4B3 for ; Tue, 10 Aug 2004 14:04:19 +0200 (CEST) Original-Received: by gaston.free.fr (Postfix, from userid 500) id 185D913C047; Tue, 10 Aug 2004 14:02:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.free.fr (Postfix) with ESMTP id DB75414807B for ; Tue, 10 Aug 2004 14:02:14 +0200 (CEST) X-X-Sender: peter@gaston.free.fr Original-To: ntg-context@ntg.nl In-Reply-To: <20040628113217.2efb080b@glenlivet.elvenkind.com> 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: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16004 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16004 On Mon, 28 Jun 2004, Taco Hoekwater wrote: > The 'key' to the keyval functionality in ConTeXt are two macros called > \getparameters and \processaction. >=20 > Here is a 'quickstart', assuming you want to define \myzigzag: >=20 > [...] Hello Taco, thank you for your 'quickstart'! I've just tried to apply \getparameters to the \Changes macro on the Wiki (http://contextgarden.net/Changes). But there is a problem and any help would be nice. Here is the new macro: \def\Changes#1[#2]{% \getparameters[CH][#2]% Auteur, Modif, Labels, Date \ifnum\RevC=3D0 \BigTitle \vskip0.5ex \Vfil \startChanges \fi \global\advance\RevC by 1 \VL \the\RevC \VL \CHDate \VL \CHModif \VL XXX%\In[\CHLabels,\relax] % does not work, but not so important for now \VL \CHAuteur \VL\AR\HL} And later on, the usage of the macro: \Changes[Date=3D1/2/2004,Modif=3DFirst version,Auteur=3DPeter] \Changes[Date=3D3/4/2004,Modif=3DSome modifications,Lables=3D{sec:S1,sec:= S2}, Auteur=3DPeter M=FCnster] \Changes[Date=3D5/6/2004,Modif=3DSome other modifications,Lables=3D{sec:S= 2}, Auteur=3DPeter] The problem: the parameter values are not updated in the two last calls of the macro. Regards, Peter --=20 http://pmrb.free.fr/contact/ _____________________________________ FilmSearch engine: http://f-s.sf.net/