Changes

Jump to navigation Jump to search
1,631 bytes added ,  14:00, 22 April 2012
Initial commit
{{Reference
|name=setdataset
|attributes=
}}

== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\setdataset<span class="first" >[...]</span><span class="second" >[...]</span><span class="third" >[...,...=...,...]</span></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[...]</td>
<td>name </td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[...]</td>
<td>name </td>
</tr>
<tr valign="top" class="third">
<td class="cmd">[...,...=...,...]</td>
<td> </td>
</tr>
</table>


== Description ==

This command is used to store key-value pairs previously defined with {{cmd|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 ==

<texcode>
\setdataset [somedataset] [foo=first, bar=second]
</texcode>

or

<texcode>
\setdataset [somedataset] [alpha] [foo=first, bar=second]
\setdataset [somedataset] [beta] [foo=first, bar=second]
</texcode>


== See also ==
<!-- something like {{cmd|goto}} -->

More detailled explanations and examples can be found under
[[System_Macros/Key_Value_Assignments|Key-Value Assignments]] section Two-pass data.


{{cmd|definedataset}},
{{cmd|datasetvariable}}


== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
{{Forum|{{SUBPAGENAME}}}}

[[Category:Commands|definedataset]]
69

edits

Navigation menu