Difference between revisions of "Command/setvariables"
< Command
Jump to navigation
Jump to search
m |
(new category; autosyntax) |
||
Line 3: | Line 3: | ||
|attributes= | |attributes= | ||
}} | }} | ||
+ | |||
+ | == Syntax == | ||
+ | |||
+ | <syntax>setvariables</syntax> | ||
== Description == | == Description == | ||
Line 36: | Line 40: | ||
== See also == | == See also == | ||
* {{cmd|getvariable}} | * {{cmd|getvariable}} | ||
+ | * {{cmd|setupvariables}} | ||
Line 42: | Line 47: | ||
{{Forum|setvariables}} | {{Forum|setvariables}} | ||
− | [[Category:Command|setvariables]] | + | [[Category:Command/Variables|setvariables]] |
Revision as of 15:24, 20 December 2019
\setvariables
Syntax
\setvariables[...][...=...,...] | |
[...] | name |
set | command |
reset | command |
key | value |
Description
Assign values to variables in a namespace. For exmaple, 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: