ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Chapters without new page
@ 2023-09-14 21:49 Jeroen
  2023-09-15  2:10 ` [NTG-context] " Rik Kabel
  2023-09-15  7:58 ` denis.maier
  0 siblings, 2 replies; 8+ messages in thread
From: Jeroen @ 2023-09-14 21:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 238 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 274 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [NTG-context] Re: Chapters without new page
  2023-09-14 21:49 [NTG-context] Chapters without new page Jeroen
@ 2023-09-15  2:10 ` Rik Kabel
  2023-09-15  2:50   ` Rik Kabel
  2023-09-15  7:58 ` denis.maier
  1 sibling, 1 reply; 8+ messages in thread
From: Rik Kabel @ 2023-09-15  2:10 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 569 bytes --]


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

[-- Attachment #1.2: Type: text/html, Size: 1279 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [NTG-context] Re: Chapters without new page
  2023-09-15  2:10 ` [NTG-context] " Rik Kabel
@ 2023-09-15  2:50   ` Rik Kabel
  0 siblings, 0 replies; 8+ messages in thread
From: Rik Kabel @ 2023-09-15  2:50 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 893 bytes --]


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

[-- Attachment #1.2: Type: text/html, Size: 2001 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [NTG-context] Re: Chapters without new page
  2023-09-14 21:49 [NTG-context] Chapters without new page Jeroen
  2023-09-15  2:10 ` [NTG-context] " Rik Kabel
@ 2023-09-15  7:58 ` denis.maier
  2023-09-15  8:10   ` Taco Hoekwater
  1 sibling, 1 reply; 8+ messages in thread
From: denis.maier @ 2023-09-15  7:58 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 927 bytes --]

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 <contextntg@gmail.com>
Gesendet: Donnerstag, 14. September 2023 23:50
An: mailing list for ConTeXt users <ntg-context@ntg.nl>
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

[-- Attachment #1.2: Type: text/html, Size: 5497 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [NTG-context] Re: Chapters without new page
  2023-09-15  7:58 ` denis.maier
@ 2023-09-15  8:10   ` Taco Hoekwater
  2023-09-15 12:07     ` Rik Kabel
  0 siblings, 1 reply; 8+ messages in thread
From: Taco Hoekwater @ 2023-09-15  8:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> On 15 Sep 2023, at 09:58, <denis.maier@unibe.ch> <denis.maier@unibe.ch> 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 <contextntg@gmail.com> 
> Gesendet: Donnerstag, 14. September 2023 23:50
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> 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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [NTG-context] Re: Chapters without new page
  2023-09-15  8:10   ` Taco Hoekwater
@ 2023-09-15 12:07     ` Rik Kabel
  2023-09-15 12:56       ` Taco Hoekwater
  0 siblings, 1 reply; 8+ messages in thread
From: Rik Kabel @ 2023-09-15 12:07 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1644 bytes --]


On 9/15/2023 4:10 AM, Taco Hoekwater wrote:
>
>> On 15 Sep 2023, at 09:58,<denis.maier@unibe.ch>  <denis.maier@unibe.ch>  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<contextntg@gmail.com>  
>> Gesendet: Donnerstag, 14. September 2023 23:50
>> An: mailing list for ConTeXt users<ntg-context@ntg.nl>
>> 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

[-- Attachment #1.2: Type: text/html, Size: 2570 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [NTG-context] Re: Chapters without new page
  2023-09-15 12:07     ` Rik Kabel
@ 2023-09-15 12:56       ` Taco Hoekwater
  2023-09-15 13:04         ` Bruce Horrocks
  0 siblings, 1 reply; 8+ messages in thread
From: Taco Hoekwater @ 2023-09-15 12:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> On 15 Sep 2023, at 14:07, Rik Kabel <rik@panix.com> wrote:
> 
> 
> On 9/15/2023 4:10 AM, Taco Hoekwater wrote:
>> 
>> 
>>> On 15 Sep 2023, at 09:58, <denis.maier@unibe.ch> <denis.maier@unibe.ch> 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 <contextntg@gmail.com> 
>>> Gesendet: Donnerstag, 14. September 2023 23:50
>>> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
>>> 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


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [NTG-context] Re: Chapters without new page
  2023-09-15 12:56       ` Taco Hoekwater
@ 2023-09-15 13:04         ` Bruce Horrocks
  0 siblings, 0 replies; 8+ messages in thread
From: Bruce Horrocks @ 2023-09-15 13:04 UTC (permalink / raw)
  To: ntg-context mailing list



> On 15 Sep 2023, at 13:56, Taco Hoekwater <taco@bittext.nl> 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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-09-15 13:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-14 21:49 [NTG-context] Chapters without new page Jeroen
2023-09-15  2:10 ` [NTG-context] " Rik Kabel
2023-09-15  2:50   ` Rik Kabel
2023-09-15  7:58 ` denis.maier
2023-09-15  8:10   ` Taco Hoekwater
2023-09-15 12:07     ` Rik Kabel
2023-09-15 12:56       ` Taco Hoekwater
2023-09-15 13:04         ` Bruce Horrocks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).