Changes

Jump to navigation Jump to search
293 bytes added ,  22:56, 26 April 2012
better stuff
== Description ==
This command is used to store key-value pairs tables in a table 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 By default the first table is saved at A middle argument is optional. When it is not used, the data saved in the set is enumerated or when If provided, it is provides the identifier name (or numerical index) at which can be used to address this particular saved the key-value pairtable is stored in the dataset; if omitted, the first anonymous table is stored at index 1, the next at index 2, and so on.
== Usage ==
<texcode>
\setdataset definedataset[somedataset] [foo=first, bar=second]</texcode>
or% Store a table at point 1\setdataset[somedataset][foo=first, bar=second]
<texcode>% Store a table by name\setdataset [somedataset] [alphacatnames] [foocat1=firstGeorgina, barcat2=secondGeorge]\setdataset [somedataset] [beta] [foo=first, bar=second]</texcode>
% Store an anonymous table at point 2
\setdataset[somedataset][name=Hans Hagen]
== See also ==% Retrieve a stored datum.<!-- something like This is the \datasetvariable{somedataset}{cmd|goto1}{foo} datum.% -->This is the first datum.
More detailled explanations and examples can be found under [[System_Macros</Key_Value_Assignments|Key-Value Assignments]] section Two-pass data.texcode>
== See also ==
* {{cmd|definedataset}},* {{cmd|datasetvariable}}* More detailed explanations and examples can be found in the Key-Value Assignments article, under the section [[System_Macros/Key_Value_Assignments#Multi-pass data|Multi-pass data]].
{{Forum|{{SUBPAGENAME}}}}
[[Category:CommandsCommand/Datasets|setdataset]]

Navigation menu