1 Oct
2024
1 Oct
'24
5:02 p.m.
Hello, When I call a buffer with sections several times, I would like to get the same headers numbers for each buffer call. (So, in my MWE twice 1 and 2, not 1, 2, 3, 4) How can I reset the section counter within a dorecurse run? I tried \resetcounter [section] but that is not the good way. I read about \headnumber and \namedheadnumber but could'nt go further. My MWE: \startbuffer \startsection[title={foo}] \input ward \stopsection \startsection[title={bar}] \input knuth \stopsection \stopbuffer \starttext \dorecurse{2}{ % how can I reset chapter number? \getbuffer } \stoptext Thanks, Damien