[dev-context] multi-level counters

Aditya Mahajan adityam at umich.edu
Sat Oct 1 08:38:45 CEST 2011


I was experimenting with multi-level counters when I noticed that
\rawsubstructurecounter[..][...] fails because 
commands.valuestructurecounter is not defined.

I think that \dorawsubstructure counter should use 'structurecountervalue' 
rather than 'valuestructurecounter'. Thus, its definition should be

\def\dorawsubstructurecounter    [#1][#2]{\ctxcommand{structurecountervalue("\@@thestructurecounter{#1}",#2)}}

Minimal example:

\definestructurecounter[test]
\starttext
\incrementsubstructurecounter[test][2]
\rawsubstructurecounter[test][1]
\rawsubstructurecounter[test][2]
\stoptext

Aditya



More information about the dev-context mailing list