Command/setvariables

From Wiki
< Command
Revision as of 08:20, 30 October 2021 by Jan Willem Flamma (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

\setvariables

Syntax (autogenerated)

\setvariables[...][...=...,...]
[...]name
setcommand
resetcommand
keyvalue


Syntax

\setvariables[...][...=...,...]
[...]name
setcommand
resetcommand
keyvalue


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: