![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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