Re: [NTG-context] key=value parameters

2004-07-24 Thread Vit Zyka
Great, but unfortunately it does not work with empty parameter list []. No I have no time but I will look for better definition of \rawgetparameters and \rawsetparameter. I fixed this a while ago, and not have: \def\rawgetparameters[#1][#2% some 5-10% faster {\ifx#2]% test is needed, else bomb

[NTG-context] key=value parameters

2004-07-23 Thread Vit Zyka
Hallo ConTeXters, I am playing with defining my own macro with key=value parameters. Please, consider definition: \def\setupField[#1]#2[#3]{\getparameters[Field!#1!][#3]} \setupField[name][mykey=value,textwidth=2cm] If you let ConTeXt to show the values by \message{

Re: [NTG-context] key=value parameters

2004-07-23 Thread Taco Hoekwater
Hi Vit, On Fri, 23 Jul 2004 10:46:10 +0200, Vit wrote: I can imagine next solutions: 1) Do not use predefined keys in my macros, e.g. textWidth instead of textwidth [=user unfriendly]. If you decide on this solution, please use Textwidth instead (at least something that starts with a

Re: [NTG-context] key=value parameters

2004-07-23 Thread Vit Zyka
Thank you Taco. I can imagine next solutions: 1) Do not use predefined keys in my macros, e.g. textWidth instead of textwidth [=user unfriendly]. If you decide on this solution, please use Textwidth instead (at least something that starts with a capital letter). OK, but I do not like this

Re: [NTG-context] key=value parameters

2004-07-23 Thread Taco Hoekwater
On Fri, 23 Jul 2004 12:53:33 +0200 Vit Zyka [EMAIL PROTECTED] wrote: That is true I was not familiar about \c!... But problem is not in familiarity with ConTeXt source but Dutch language. One should write \c!tekstbreedte instead of \c!textwidth. For non Dutch it means all the time search

Re[2]: [NTG-context] key=value parameters

2004-07-23 Thread Giuseppe Bilotta
Friday, July 23, 2004 Vit Zyka wrote: Actually there is no need to define anything, you can just use \rawgetparameters instead of \getparameters. Great, but unfortunately it does not work with empty parameter list []. No I have no time but I will look for better definition of

Re: [NTG-context] key=value parameters

2004-07-23 Thread Hans Hagen Outside
Vit Zyka wrote: Great, but unfortunately it does not work with empty parameter list []. No I have no time but I will look for better definition of \rawgetparameters and \rawsetparameter. I fixed this a while ago, and not have: %D \macros %D {rawgetparameters} %D %D A raw and dirty alternative