Difference between revisions of "Command/setvariables"
< Command
Jump to navigation
Jump to search
(new category; autosyntax) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
}} | }} | ||
− | == Syntax == | + | == [[Help:Reference|Syntax]] (autogenerated) == |
+ | <syntax>setvariables</syntax> | ||
+ | |||
+ | == [[Help:Reference|Syntax]] == | ||
<syntax>setvariables</syntax> | <syntax>setvariables</syntax> | ||
Line 10: | Line 13: | ||
== Description == | == Description == | ||
− | Assign values to variables in a namespace. For | + | Assign values to variables in a namespace. For example, if you use: |
<texcode> | <texcode> | ||
\setvariables | \setvariables |
Latest revision as of 08:20, 30 October 2021
\setvariables
Syntax (autogenerated)
\setvariables[...][...=...,...] | |
[...] | name |
set | command |
reset | command |
key | value |
Syntax
\setvariables[...][...=...,...] | |
[...] | name |
set | command |
reset | command |
key | value |
Description
Assign values to variables in a namespace. For example, if you use:
\setvariables [var] [ a=1, b=2, c=3, ]
then, \getvariable{var}{a}
returns 1
, etc.
Also see Setups.
Example
% \setups[namespace:set] is automatically called right after 'set' is assigned \setvariables[namespace] [set={\setups[namespace:set]}, key={Apples are \applecolor!}, reset={\setups[namespace:reset]}, ]
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: