On Mon, 28 Jun 2004, Taco Hoekwater wrote:

> The 'key' to the keyval functionality in ConTeXt are two macros called
> \getparameters and \processaction.
> 
> Here is a 'quickstart', assuming you want to define \myzigzag:
> 
> [...]

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=0 \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=1/2/2004,Modif=First version,Auteur=Peter]
\Changes[Date=3/4/2004,Modif=Some modifications,Lables={sec:S1,sec:S2},
  Auteur=Peter Münster]
\Changes[Date=5/6/2004,Modif=Some other modifications,Lables={sec:S2},
  Auteur=Peter]

The problem:
the parameter values are not updated in the two last calls of the macro.

Regards, Peter

-- 
http://pmrb.free.fr/contact/
_____________________________________
FilmSearch engine: http://f-s.sf.net/
_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to