Difference between revisions of "Command/setdataset"

From Wiki
Jump to navigation Jump to search
(Initial commit)
 
m (Fix typo)
Line 57: Line 57:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|definedataset]]
+
[[Category:Commands|setdataset]]

Revision as of 14:00, 22 April 2012

\setdataset

Syntax

\setdataset[...][...][...,...=...,...]
[...] name
[...] name
[...,...=...,...]


Description

This command is used to store key-value pairs previously defined with \definedataset. The first argument is the data set name, the last argument is a list of key-value pairs of data that should be saved. The second argument is optional. When it is not used, the data saved in the set is enumerated or when provided, it is the identifier which can be used to address this particular saved key-value pair.

Usage

\setdataset [somedataset] [foo=first, bar=second]

or

\setdataset [somedataset] [alpha] [foo=first, bar=second]
\setdataset [somedataset] [beta]  [foo=first, bar=second]


See also

More detailled explanations and examples can be found under Key-Value Assignments section Two-pass data.


\definedataset, \datasetvariable


Help from ConTeXt-Mailinglist/Forum

All issues with: