ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@bittext.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Chapters without new page
Date: Fri, 15 Sep 2023 14:56:43 +0200	[thread overview]
Message-ID: <5CDE79AF-E4C5-415E-BF8C-FF6C7BBD378B@bittext.nl> (raw)
In-Reply-To: <9b467b75-bf91-423c-bde6-69159c9f7451@panix.com>



> 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
___________________________________________________________________________________

  reply	other threads:[~2023-09-15 12:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-14 21:49 [NTG-context] " 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 [this message]
2023-09-15 13:04         ` Bruce Horrocks

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5CDE79AF-E4C5-415E-BF8C-FF6C7BBD378B@bittext.nl \
    --to=taco@bittext.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).