* \startbodymatter forcing new page in document
@ 2021-11-15 14:07 A A via ntg-context
2021-11-15 14:28 ` Taco Hoekwater via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: A A via ntg-context @ 2021-11-15 14:07 UTC (permalink / raw)
To: ntg-context; +Cc: A A
[-- Attachment #1.1: Type: text/plain, Size: 668 bytes --]
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?
Regards,
Amine
[-- Attachment #1.2: Type: text/html, Size: 1005 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: \startbodymatter forcing new page in document
2021-11-15 14:07 \startbodymatter forcing new page in document 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
0 siblings, 1 reply; 3+ messages in thread
From: Taco Hoekwater via ntg-context @ 2021-11-15 14:28 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
> 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]
>
> Regards,
>
> Amine
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
—
Taco Hoekwater E: taco@bittext.nl
genderfluid (all pronouns)
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: \startbodymatter forcing new page in document
2021-11-15 14:28 ` Taco Hoekwater via ntg-context
@ 2021-11-15 16:07 ` Wolfgang Schuster via ntg-context
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-11-15 16:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
Cc: Wolfgang Schuster, A A via ntg-context, Taco Hoekwater
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-11-15 16:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-15 14:07 \startbodymatter forcing new page in document 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 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).