Damien Thiriet via ntg-context schrieb am 01.10.2024 um 17:02:
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?
\setupheadnumber[section][0]
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________