ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>,
	A A via ntg-context <ntg-context@ntg.nl>,
	Taco Hoekwater <taco@bittext.nl>
Subject: Re: \startbodymatter forcing new page in document
Date: Mon, 15 Nov 2021 17:07:31 +0100	[thread overview]
Message-ID: <d0323c6b-e5ee-1103-df89-9c3531f5ee5c@gmail.com> (raw)
In-Reply-To: <09BC10BC-94AC-44E3-9F08-D066FB9F87FD@bittext.nl>

Taco Hoekwater via ntg-context schrieb am 15.11.2021 um 15:28:
>> On 15 Nov 2021, at 15:07, A A via ntg-context <ntg-context@ntg.nl> wrote:
>>
>> Dear All,
>>
>> The following code generates a title and some fake text:
>>
>> \setuppagenumbering[location=right]
>>
>> \usemodule[visual]
>>
>> \usebtxdataset[bibliography.bib]
>> \starttext
>> \title{test}
>> \fakewords{1000}{1200}
>>
>> \stoptext
>>
>> The following code does the same, but wraps the fakewords in a bodymatter environment:
>>
>> \setuppagenumbering[location=right]
>>
>> \usemodule[visual]
>>
>> \usebtxdataset[bibliography.bib]
>> \starttext
>> \title{test}
>> \startbodymatter
>> \fakewords{1000}{1200}
>> \stopbodymatter
>>
>> \stoptext
>>
>>
>> In the first case, the title remains on the same page as the fake text. In the second case, a new page is forced after the title. Why does this occur?
> \startbodymatter starts a sectionblock (the “bodypart” block, to be exact) and
> by default these blocks all switch to a ‘right’ page. Add this in your preamble to
> get rid of the page switch:
>
> \setupsectionblock[bodypart][page=no]

The better solution in my opinion is to put the title *in* the sectionblock.

Wolfgang

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

      reply	other threads:[~2021-11-15 16:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-15 14:07 A A via ntg-context
2021-11-15 14:28 ` Taco Hoekwater via ntg-context
2021-11-15 16:07   ` Wolfgang Schuster via ntg-context [this message]

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=d0323c6b-e5ee-1103-df89-9c3531f5ee5c@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=taco@bittext.nl \
    --cc=wolfgang.schuster.lists@gmail.com \
    /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).