Chapter numbering that does not follow a regular pattern
Hi there, I have a situation where numbered chapters are occasionally interspersed with unnumbered chapters, so, for example, it might be: 1 First chapter title with number second chapter title unnumbered 2 Second chapter title with number 3 Third chapter title with number ----------- Now, I can achieve what I want by putting something like the following for a 'normal' chapter (by which I mean one that needs to be numbered, but would otherwise be out of sequence): \chapter[title={\sc My chapter title that needs a different number},ownnumber=2] And in the case of the interspersed 'other' chapter (that is, the one that follows Chapter 1 numbered, still needs a title, but no number, and therefore breaks the normal number increment), I define 'mychapter' in the initial setup, then: \mychapter[title={\sc MY UNNUMBERED CHAPTER TITLE},number=no] ----------- But I was wondering if there was a way that I could achieve the result I want in the initial setup for the two different kinds of chapters. If it were a regular pattern, e.g. 1 chapter, unnumbered chapter, 2 chapter, unnumbered chapter, that might be easier to do, but in the situation I am dealing with, there is not this regularity. You may well tell me that since I can achieve what I want as described above, that should suffice. I will be happy to have that confirmed. On the other hand, someone may have a more elegant suggestion in the initial setup that enables me to call in the specific kind of chapter I need at the time in a simpler way. Julian
Am 13.07.2020 um 02:23 schrieb jbf
: Hi there,
I have a situation where numbered chapters are occasionally interspersed with unnumbered chapters, so, for example, it might be:
1 First chapter title with number
second chapter title unnumbered
2 Second chapter title with number
3 Third chapter title with number
Use \title (or \starttitle[title={}]) for unnumbered and \chapter (\startchaper) for numbered. If you need the unnumbered chapters in your ToC, you must add them like \setupcombinedlist[content][list={chapter,title}] You can setup most options for both using \setuphead[chapter,title][...] HTH Hraban
That's obviously much simpler! I was under the impression that 'title' was
only for use in front matter, or that if I used it elsewhere, then it
didn't show the number but that the next use of 'chapter' would increment
as if it had a number. I was wrong!
On Mon, 13 Jul 2020, 5:13 PM Henning Hraban Ramm
Am 13.07.2020 um 02:23 schrieb jbf
: Hi there,
I have a situation where numbered chapters are occasionally interspersed with unnumbered chapters, so, for example, it might be:
1 First chapter title with number
second chapter title unnumbered
2 Second chapter title with number
3 Third chapter title with number
Use \title (or \starttitle[title={}]) for unnumbered and \chapter (\startchaper) for numbered.
If you need the unnumbered chapters in your ToC, you must add them like \setupcombinedlist[content][list={chapter,title}]
You can setup most options for both using \setuphead[chapter,title][...]
HTH
Hraban
___________________________________________________________________________________ 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
___________________________________________________________________________________
On 7/13/2020 11:27 AM, Julian Fox wrote:
That's obviously much simpler! I was under the impression that 'title' was only for use in front matter, or that if I used it elsewhere, then it didn't show the number but that the next use of 'chapter' would increment as if it had a number. I was wrong!
titles normally don't end up in the toc, chapters do ... in frontmatter chapters are unnumbered too so it's kind of a combination: numbers/unnumbered and tocontents/nottocontents depending on the 'matter' at hand Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Hans Hagen
-
Henning Hraban Ramm
-
jbf
-
Julian Fox