[dev-context] processing comma/assignmentlist

Hans Hagen pragma at wxs.nl
Sun Jul 19 13:09:16 CEST 2009


Wolfgang Schuster wrote:
> Hi,
> 
> there are two macros I miss there (for the moment) in ConTeXt
> 
> 1. \startprocesscommacommand/\stopprocesscommacommand equivalent to
>    \startprocesscommalist/\stopprocesscommalist from cont-new.tex

ok, i added that one and moved this code to syst modules

> 2. A command to access the keys and labels of a assignment list at user 
> level, e.g.
> 
>    \def\myassignmentlist[#1]%
>      {\def\dosomethingwithkeyandvalue##1##2##3{... ##2 ... ##3}% ##1 = 
> namespace (not used here)
>       \dogetparameter\dosomethingwithkeyandvalue[...][#1]}
> 
>    \myassignmentlist[..,..=..,..=..]

is this the best name? maybe

\getmyparameters[a=1,b=]\handler

(or \getmyparameters\handler [a=1,b=])




-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the dev-context mailing list