Problems with sectionreset key for \setuphead
Hi Hans, there are a few problems with the sectionreset key for \setuphead. In the example below I can only create continues numbers for \section when I “default” as name for \defineresetset (Method 1) or when I apply my own set to the global setups (Method 2). The important second method which is needed when I have multiple headings with the same level where one should continue to the while document doesn’t work. % Method 1: % \defineresetset[default][][0] % Method 2: % \defineresetset[noreset][][0] % \setuphead[section][sectionresetset=noreset] % Method 3: \defineresetset[noreset][][0] \setuphead[sectionresetset=noreset] \starttext \chapter{First Chapter} \section{First Section} \chapter{Second Chapter} \section{Second Section} \stoptext Wolfgang
Hi Wolfgang,
there are a few problems with the sectionreset key for \setuphead. In the example below I can only create continues numbers for \section when I “default” as name for \defineresetset (Method 1) or when I apply my own set to the global setups (Method 2). The important second method which is needed when I have multiple headings with the same level where one should continue to the while document doesn’t work.
I stared at it for a couple of hours at it's a tricky mechanism (and potentially confusing as we mix a document property with local settings). I added a patch for you to play with. The testfile is sections/tricky-001. You can disable the trickert with local saveset = false -- line 236 in strc-doc.lua. 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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Wolfgang Schuster