On 20-4-2012 17:30, Marco wrote:
On 2012-04-19 Wolfgang Schuster<schuster.wolfg...@googlemail.com> wrote:
Hi Wolfgang,
thanks for the answer. In the first place I also came up with a
similar solution to yours. But that's what I meant by ”manually
counting” and wanted to avoid. Apparently I missed the obvious,
there is no special magic needed:
% doesn't seem to be necessary
% \definedataset [test]
\setdataset [test] [foo] [foo=first]
\setdataset [test] [foo] [foo=second]
\setdataset [test] [bar] [bar=first]
\setdataset [test] [bar] [bar=second]
\setdataset [test] [bar] [bar=third]
\starttext
foo is: \datasetvariable{test}{foo}{foo}\crlf
bar is: \datasetvariable{test}{bar}{bar}
\stoptext
Wikified:
http://wiki.contextgarden.net/System_Macros/Key_Value_Assignments#Two-pass_data
Maybe you should add a note about \detupdatase[test][delay=yes] as
option. In that case a node is injected and the dataset is extended with
'realpage', 'index' and 'order' information with the realpage being
synchronized when the node is flushed.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context