[NTG-context] handling key=value sets with lua

Hans Hagen pragma at wxs.nl
Sun Jan 9 23:24:07 CET 2011


On 9-1-2011 11:13, Philipp A. wrote:

> i wanted to instead define bigcrafting to work like this:
> \bigcrafting
>    [21=planks, 22=planks,
>     31=planks, 32=planks]
>    [workbench]
>
> but \getparameters<http://wiki.contextgarden.net/Commands_with_KeyVal_arguments>can’t
> handle numerical values.

Why now?

\getparameters[MyNameSpace][1=a,2=b]

\getvalue{MyNameSpace1}

works ok.

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


More information about the ntg-context mailing list