Am 23.04.10 22:24, schrieb Peter Münster:
On Fri, Apr 23 2010, Wolfgang Schuster wrote:
\setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad]}]
Hello Wolfgang,
It works event without \setvariables:
\defineitemgroup[Tst]
\setupTst[1][n,\getvariable{tst}{broad}*broad]
\starttext
\setvariables[tst][broad=1]
\startTst
\item text
\stopTst
\setvariables[tst][broad=5]
\startTst
\item text
\stopTst
\stoptext
But why? I don't see any "\noexpand" in the definition of \getvariable...
Not sure but it could be possible \setvariables makes only a one level
expansion and in this case you get '\csname ...broad\endcsname*broad'
but not the the number itself.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________