In the \startbackmatter ... \stopbackmatter section i would like to have some chapters that are not automatically placed on a new page for the next chapter. Is there an easy way to suppress the new page for these chapters? Thanks, Jeroen
On 9/14/2023 5:49 PM, Jeroen wrote:
In the \startbackmatter ... \stopbackmatter section i would like to have some chapters that are not automatically placed on a new page for the next chapter. Is there an easy way to suppress the new page for these chapters? Thanks, Jeroen
Untried: 1. Define a new section head that clones chapter (\definehead[NPChapter][chapter]). 2. Modify the new section head so that it does not do a break (\setuphead[NPChapter][page=no]). 3. Use the new section head instead of \chapter or \startchapter. -- Rik
On 9/14/2023 10:10 PM, Rik Kabel wrote:
On 9/14/2023 5:49 PM, Jeroen wrote:
In the \startbackmatter ... \stopbackmatter section i would like to have some chapters that are not automatically placed on a new page for the next chapter. Is there an easy way to suppress the new page for these chapters? Thanks, Jeroen
Untried:
1. Define a new section head that clones chapter (\definehead[NPChapter][chapter]). 2. Modify the new section head so that it does not do a break (\setuphead[NPChapter][page=no]). 3. Use the new section head instead of \chapter or \startchapter.
And, if you want them to appear in the table of contents, modify the combined list of section headers that go into the contents (\setupcombinedlist[content][list=chapter,NPChapter,...]). Perhaps add it to the pdf bookmarks as well (\placebookmarks...). -- RIk
I thought there should be a setups key on \setupsectionblock, but apparently there isn’t. So, the example below does not work, but maybe it wouldn’t be too hard to add it…
Best,
Denis
\setuphead[chapter][page=yes]
\setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}]
\starttext
\chapter{One}
\input knuth
\chapter{Two}
\input ward
\startbackmatter
\chapter{Three}
\input knuth
\chapter{Four}
\input ward
\stopbackmatter
\stoptext
Von: Jeroen
On 15 Sep 2023, at 09:58,
wrote: I thought there should be a setups key on \setupsectionblock, but apparently there isn’t. So, the example below does not work, but maybe it wouldn’t be too hard to add it…
There is a ‘before' key, but note that the sectionblock itself is called “backpart”, not “backmatter” Either use \setupsectionblock[backpart][before={\setuphead[chapter][page=no]}] Or, nicer: \startsectionblockenvironment[backpart] \setuphead[chapter][page=no] \stopsectionblockenvironment
Best, Denis \setuphead[chapter][page=yes] \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}] \starttext \chapter{One} \input knuth \chapter{Two} \input ward \startbackmatter \chapter{Three} \input knuth \chapter{Four} \input ward \stopbackmatter \stoptext Von: Jeroen
Gesendet: Donnerstag, 14. September 2023 23:50 An: mailing list for ConTeXt users Betreff: [NTG-context] Chapters without new page In the \startbackmatter ... \stopbackmatter section i would like to have some chapters that are not automatically placed on a new page for the next chapter. Is there an easy way to suppress the new page for these chapters? Thanks, Jeroen
Best wishes, Taco
On 9/15/2023 4:10 AM, Taco Hoekwater wrote:
On 15 Sep 2023, at 09:58,
wrote: I thought there should be a setups key on \setupsectionblock, but apparently there isn’t. So, the example below does not work, but maybe it wouldn’t be too hard to add it… There is a ‘before' key, but note that the sectionblock itself is called “backpart”, not “backmatter”
Either use
\setupsectionblock[backpart][before={\setuphead[chapter][page=no]}]
Or, nicer:
\startsectionblockenvironment[backpart] \setuphead[chapter][page=no] \stopsectionblockenvironment
Best, Denis \setuphead[chapter][page=yes] \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}] \starttext \chapter{One} \input knuth \chapter{Two} \input ward \startbackmatter \chapter{Three} \input knuth \chapter{Four} \input ward \stopbackmatter \stoptext Von: Jeroen
Gesendet: Donnerstag, 14. September 2023 23:50 An: mailing list for ConTeXt users Betreff: [NTG-context] Chapters without new page In the \startbackmatter ... \stopbackmatter section i would like to have some chapters that are not automatically placed on a new page for the next chapter. Is there an easy way to suppress the new page for these chapters? Thanks, Jeroen Best wishes, Taco
While this works, it changes behavior for **all** chapters. It does not address the original question of how to have **some** chapters "not automatically placed on a new page." -- Rik
On 15 Sep 2023, at 14:07, Rik Kabel
wrote: On 9/15/2023 4:10 AM, Taco Hoekwater wrote:
On 15 Sep 2023, at 09:58,
wrote: I thought there should be a setups key on \setupsectionblock, but apparently there isn’t. So, the example below does not work, but maybe it wouldn’t be too hard to add it…
There is a ‘before' key, but note that the sectionblock itself is called “backpart”, not “backmatter”
Either use
\setupsectionblock[backpart][before={\setuphead[chapter][page=no]}]
Or, nicer:
\startsectionblockenvironment[backpart] \setuphead[chapter][page=no] \stopsectionblockenvironment
Best, Denis \setuphead[chapter][page=yes] \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}] \starttext \chapter{One} \input knuth \chapter{Two} \input ward \startbackmatter \chapter{Three} \input knuth \chapter{Four} \input ward \stopbackmatter \stoptext Von: Jeroen
Gesendet: Donnerstag, 14. September 2023 23:50 An: mailing list for ConTeXt users Betreff: [NTG-context] Chapters without new page In the \startbackmatter ... \stopbackmatter section i would like to have some chapters that are not automatically placed on a new page for the next chapter. Is there an easy way to suppress the new page for these chapters? Thanks, Jeroen Best wishes, Taco
While this works, it changes behavior for **all** chapters. It does not address the original question of how to have **some** chapters "not automatically placed on a new page."
Like this? \definehead[mychapter][chapter] \setuphead[mychapter][page=no] Taco
On 15 Sep 2023, at 13:56, Taco Hoekwater
wrote: Like this?
\definehead[mychapter][chapter] \setuphead[mychapter][page=no]
Taco beat me to it... a simple example: \starttext \chapter{First} Some text \chapter{Second} More text \chapter{Third} More text \setuphead[chapter][page=no] \chapter{Fourth} More text \chapter{Fifth} More text \stoptext — Bruce Horrocks Hampshire, UK
participants (6)
-
Bruce Horrocks
-
denis.maier@unibe.ch
-
Jeroen
-
Rik Kabel
-
Rik Kabel
-
Taco Hoekwater