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
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{
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
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
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
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
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