From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Re :! Undefined control sequence
Date: Fri, 23 Apr 2010 20:36:31 +0200 [thread overview]
Message-ID: <4BD1E8AF.8030409@googlemail.com> (raw)
In-Reply-To: <4BD1F2F9.21561.243D178@wwl.musensturm.de>
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
___________________________________________________________________________________
prev parent reply other threads:[~2010-04-23 18:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BD1E8AF.8030409@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).