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

2011-01-09 Thread luigi scarso
On Sun, Jan 9, 2011 at 11:13 PM, Philipp A. wrote: > hi list, > > skip to the many %%% if you just want to help me ;) > > i need to make a macro which consists of ten optional arguments. it > wouldn’t be too ugly to require to write the following to use it, since it > outputs a 3×3 matrix with an

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

2011-01-09 Thread Philipp A.
2011/1/9 Hans Hagen > 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_argume

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

2011-01-09 Thread Hans Hagen
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 \getparameterscan’t handle numerical values. Why no

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

2011-01-09 Thread Philipp A.
hi list, skip to the many %%% if you just want to help me ;) i need to make a macro which consists of ten optional arguments. it wouldn’t be too ugly to require to write the following to use it, since it outputs a 3×3 matrix with an adjacent tenth item, but tex can’t handle ten arguments afaik.