Continued chapter numbers
I need chapter numbers to continue sequentially across several parts. At the moment, when Part 2 begins, it begins with Chapter 1 once more, while it should be (in continued sequence) Chapter 4. I know that I can achieve the desired result by including ownnumber=4, so: \startchapter[title={My chapter title},ownnumber=4] will do that for me. But this means I have to do it for every chapter that follows (there are 11 more!). Perhaps there is a single way to get the result I want in the preamble with \setuphead[chapter] or similar. I have searched the wiki but it is not easy to find an answer to this. Can anyone point me to where, in the wiki, I can find a simple way to ensure sequential chapter numbers? Julian
On Wed, 6 Jan 2021 20:24:07 +1100
jbf
I need chapter numbers to continue sequentially across several parts. At the moment, when Part 2 begins, it begins with Chapter 1 once more, while it should be (in continued sequence) Chapter 4.
\defineresetset [jbfreset] [] [0] \setuphead [chapter] [sectionresetset=jbfreset] Marco
Not tested, but what about this? \setupcounter[chapter][way=bytext] Best, Denis
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von jbf Gesendet: Mittwoch, 6. Januar 2021 10:24 An: mailing list for ConTeXt users Betreff: [NTG-context] Continued chapter numbers I need chapter numbers to continue sequentially across several parts. At the moment, when Part 2 begins, it begins with Chapter 1 once more, while it should be (in continued sequence) Chapter 4.
I know that I can achieve the desired result by including ownnumber=4, so:
\startchapter[title={My chapter title},ownnumber=4] will do that for me. But this means I have to do it for every chapter that follows (there are 11 more!).
Perhaps there is a single way to get the result I want in the preamble with \setuphead[chapter] or similar. I have searched the wiki but it is not easy to find an answer to this. Can anyone point me to where, in the wiki, I can find a simple way to ensure sequential chapter numbers?
Julian
__________________________________________________________ _________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg- context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net __________________________________________________________ _________________________
Thanks Denis, as you said not tested, but now it has been tested... did not work, though I might try some variations of that just to see if it could work somehow. In the meantime Marco's solution has worked so the immediate problem is resolved. Julian On 6/1/21 9:10 pm, denis.maier@ub.unibe.ch wrote:
Not tested, but what about this?
\setupcounter[chapter][way=bytext]
Best, Denis
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von jbf Gesendet: Mittwoch, 6. Januar 2021 10:24 An: mailing list for ConTeXt users Betreff: [NTG-context] Continued chapter numbers I need chapter numbers to continue sequentially across several parts. At the moment, when Part 2 begins, it begins with Chapter 1 once more, while it should be (in continued sequence) Chapter 4.
I know that I can achieve the desired result by including ownnumber=4, so:
\startchapter[title={My chapter title},ownnumber=4] will do that for me. But this means I have to do it for every chapter that follows (there are 11 more!).
Perhaps there is a single way to get the result I want in the preamble with \setuphead[chapter] or similar. I have searched the wiki but it is not easy to find an answer to this. Can anyone point me to where, in the wiki, I can find a simple way to ensure sequential chapter numbers?
Julian
__________________________________________________________ _________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg- context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net __________________________________________________________ _________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (3)
-
denis.maier@ub.unibe.ch
-
jbf
-
Marco Patzer