* Re :! Undefined control sequence
[not found] <mailman.718.1272038228.4277.ntg-context@ntg.nl>
@ 2010-04-23 17:20 ` Wolfgang Werners-Lucchini
2010-04-23 18:36 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Wolfgang Werners-Lucchini @ 2010-04-23 17:20 UTC (permalink / raw)
To: ntg-context
Hallo Taco and Wolfgang,
> > Why is this?
>
> Because \setupitemgroup expands its third argument.
>
> > And how can I make it work in position 2?
>
> \setupitemgroup[Tst][1][n,\noexpand\broad ]
>
thank you very much!
> \defineitemgroup[Tst]
>
> \setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broa
> d]}]
>
> \starttext
>
> \startTst
> \item text
> \stopTst
>
> \setvariables[tst][broad=5]
>
> \startTst
> \item text
> \stopTst
>
> \stoptext
>
> Wolfgang
What is the following command for:
\setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad]
}]
This is enough, or are there any problems?
\setupTst[1][n,\getvariable{tst}{broad}*broad]
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Re :! Undefined control sequence
2010-04-23 17:20 ` Re :! Undefined control sequence Wolfgang Werners-Lucchini
@ 2010-04-23 18:36 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2010-04-23 18:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 23.04.10 19:20, schrieb Wolfgang Werners-Lucchini:
> What is the following command for:
>
> \setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad]
> }]
>
> This is enough, or are there any problems?
>
> \setupTst[1][n,\getvariable{tst}{broad}*broad]
>
To explain it with simpler macros
\setvariables[tst][set={...}] is similar to
\def\tstset{\setupTst[1][n,\tstbroad*broad]}
and
\setvariables[tst][broad=5] is similar to
\def\tstbroad{5}
but the special thing is now that \setvariables calls \tstset (or to be
concrete
the value of the 'set' key in \setvariables after the) value was
assigned to broad.
In a complete and simple example this is what happens:
\defineitemgroup[Tst]
\def\tstset{\setupTst[1][\tstbroad*broad]}
\starttext
\startTst
\item text
\stopTst
\def\tstbroad{5}\tstset
\startTst
\item text
\stopTst
\stoptext
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-23 18:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.718.1272038228.4277.ntg-context@ntg.nl>
2010-04-23 17:20 ` Re :! Undefined control sequence Wolfgang Werners-Lucchini
2010-04-23 18:36 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).