Changes

Jump to navigation Jump to search
Add two-pass information about [delay=yes]
== Defining a data set ==
To store values to the <code>.tuc</code> the command <code>\definedataset [myset]</code> is used to define a container for the data. To save additional data, a second argument can be used: <code>\definedataset [myset] [delay=yes]</code>. In that case a node is injected and the dataset is extended with <code>realpage</code>, <code>index</code> and <code>order</code>information with the realpage being synchronized when the node is flushed.
== Storing data ==
</texcode>
 
If the data was defined with <code>delay=yes</code>, then additional
information will be written to the <code>.tuc</code> file.
 
<texcode>
\definedataset [test] [delay=yes]
\setdataset [test] [foo] [foo=first]
\setdataset [test] [foo] [foo=second]
</texcode>
 
If e.g. the <code>\setdataset</code> calls happen to end up on the second
page, the <code>.tuc</code> file will contain the following collected data.
 
<pre>
utilitydata.job.datasets.collected={
["test"]={
{
["foo"]="first",
["index"]=1,
["order"]=1,
["realpage"]=2,
},
{
["foo"]="second",
["index"]=2,
["order"]=2,
["realpage"]=2,
},
},
}
</pre>
== Retrieving the values ==
69

edits

Navigation menu