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
On 1-10-2011 08:38, Aditya Mahajan wrote:
def\dorawsubstructurecounter [#1][#2]{\ctxcommand{structurecountervalue("\@@thestructurecounter{#1}",#2)}}
fixed -- ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (2)
-
Aditya Mahajan
-
Hans Hagen