* preventing page break
@ 2019-07-10 10:52 Floris van Manen
2019-07-19 11:24 ` Henning Hraban Ramm
0 siblings, 1 reply; 8+ messages in thread
From: Floris van Manen @ 2019-07-10 10:52 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
Hello List,
What is the preferred way in context to prevent a page break happening
between the heading(s) of a section and, for instance, the first 3 lines
of the following paragraph?
\section(one)
\subsection(one two}
%--- no page break here
One two three for ...
One two three for ...
One two three for ...
%- from here page breaks allowed
Thanks
.Floris
[-- Attachment #2: pEpkey.asc --]
[-- Type: application/pgp-keys, Size: 2497 bytes --]
[-- Attachment #3: 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] 8+ messages in thread
* Re: preventing page break
2019-07-10 10:52 preventing page break Floris van Manen
@ 2019-07-19 11:24 ` Henning Hraban Ramm
0 siblings, 0 replies; 8+ messages in thread
From: Henning Hraban Ramm @ 2019-07-19 11:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
Zitat von Floris van Manen <vm@klankschap.nl>:
> Hello List,
>
> What is the preferred way in context to prevent a page break happening
> between the heading(s) of a section and, for instance, the first 3 lines
> of the following paragraph?
>
> \section(one)
> \subsection(one two}
> %--- no page break here
> One two three for ...
> One two three for ...
> One two three for ...
> %- from here page breaks allowed
You can use \testpage{#} to tell ConTeXt there should be at least #
lines following; I often use this with \setuphead.
Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD
___________________________________________________________________________________
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] 8+ messages in thread
* Re: Preventing page break
@ 2007-01-24 21:31 Elliot Clifton
0 siblings, 0 replies; 8+ messages in thread
From: Elliot Clifton @ 2007-01-24 21:31 UTC (permalink / raw)
To: ntg-context
Hi,
Thanks for the replies. You confirmed what I suspected -- that by
default there are no auto page-breaks after most sections. I have no
idea how I got into this mess but I think I'll start over with a fresh
setup. I guess, it's all part of the learning process.
Elliot
Date: Wed, 24 Jan 2007 20:52:51 +0100
From: Willi Egger <w.egger@boede.nl>
> Hi Elliot,
>
> humble, I agree with Mike's statement.
> In general the \setuphead command is used to organize the behaviour of
> the section titles. By default only the \chapter and \part start on a
> right page in a doublesided layout.
> See also cont-enp.pdf (The manual) on page 148 (text elements) section
> 8.5 Alternative mechanisms.
>
>
> Willi
>
> Mike Bird wrote:
> > On Wednesday 24 January 2007 08:21, Elliot Clifton wrote:
> >
> >> Mike wrote:
> >>
> >>> Does "\setuphead[chapter][before={\page[yes]}]" do what you want?
> >>>
> >> No. I want to remove empty pages that are being auto generated at the
> >> end of a section.
> >>
> >
> > Hi Elliot,
> >
> > I think you'll need to post the relevant part of your setup, as
> > ConTeXt does not create empty pages after sections by default,
> > even in double-sided documents:
> >
> > \starttext
> > \setuppagenumbering[alternate=doublesided]
> > \section{A}
> > \section{B}
> > \stoptext
> >
> > --Mike Bird
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Preventing page break
2007-01-24 16:47 ` Mike Bird
@ 2007-01-24 19:52 ` Willi Egger
0 siblings, 0 replies; 8+ messages in thread
From: Willi Egger @ 2007-01-24 19:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Elliot,
humble, I agree with Mike's statement.
In general the \setuphead command is used to organize the behaviour of
the section titles. By default only the \chapter and \part start on a
right page in a doublesided layout.
See also cont-enp.pdf (The manual) on page 148 (text elements) section
8.5 Alternative mechanisms.
Willi
Mike Bird wrote:
> On Wednesday 24 January 2007 08:21, Elliot Clifton wrote:
>
>> Mike wrote:
>>
>>> Does "\setuphead[chapter][before={\page[yes]}]" do what you want?
>>>
>> No. I want to remove empty pages that are being auto generated at the
>> end of a section.
>>
>
> Hi Elliot,
>
> I think you'll need to post the relevant part of your setup, as
> ConTeXt does not create empty pages after sections by default,
> even in double-sided documents:
>
> \starttext
> \setuppagenumbering[alternate=doublesided]
> \section{A}
> \section{B}
> \stoptext
>
> --Mike Bird
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Preventing page break
2007-01-24 16:21 Elliot Clifton
@ 2007-01-24 16:47 ` Mike Bird
2007-01-24 19:52 ` Willi Egger
0 siblings, 1 reply; 8+ messages in thread
From: Mike Bird @ 2007-01-24 16:47 UTC (permalink / raw)
To: ntg-context
On Wednesday 24 January 2007 08:21, Elliot Clifton wrote:
> Mike wrote:
> > Does "\setuphead[chapter][before={\page[yes]}]" do what you want?
>
> No. I want to remove empty pages that are being auto generated at the
> end of a section.
Hi Elliot,
I think you'll need to post the relevant part of your setup, as
ConTeXt does not create empty pages after sections by default,
even in double-sided documents:
\starttext
\setuppagenumbering[alternate=doublesided]
\section{A}
\section{B}
\stoptext
--Mike Bird
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Preventing page break
@ 2007-01-24 16:21 Elliot Clifton
2007-01-24 16:47 ` Mike Bird
0 siblings, 1 reply; 8+ messages in thread
From: Elliot Clifton @ 2007-01-24 16:21 UTC (permalink / raw)
To: ntg-context
Hi Mike
Thanks for the reply.
Mike wrote:
> Does "\setuphead[chapter][before={\page[yes]}]" do what you want?
No. I want to remove empty pages that are being auto generated at the
end of a section.
Elliot
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Preventing page break
2007-01-24 0:25 Elliot Clifton
@ 2007-01-24 0:56 ` Mike Bird
0 siblings, 0 replies; 8+ messages in thread
From: Mike Bird @ 2007-01-24 0:56 UTC (permalink / raw)
On Tuesday 23 January 2007 16:25, Elliot Clifton wrote:
> In my double sided layout how can I stop ConTeXt from adding an empty
> page when a section ends.
Hi Elliot,
Does "\setuphead[chapter][before={\page[yes]}]" do what you want?
--Mike Bird
^ permalink raw reply [flat|nested] 8+ messages in thread
* Preventing page break
@ 2007-01-24 0:25 Elliot Clifton
2007-01-24 0:56 ` Mike Bird
0 siblings, 1 reply; 8+ messages in thread
From: Elliot Clifton @ 2007-01-24 0:25 UTC (permalink / raw)
Hi
In my double sided layout how can I stop ConTeXt from adding an empty
page when a section ends.
Thanks,
Elliot
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-07-19 11:24 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-10 10:52 preventing page break Floris van Manen
2019-07-19 11:24 ` Henning Hraban Ramm
-- strict thread matches above, loose matches on Subject: below --
2007-01-24 21:31 Preventing " Elliot Clifton
2007-01-24 16:21 Elliot Clifton
2007-01-24 16:47 ` Mike Bird
2007-01-24 19:52 ` Willi Egger
2007-01-24 0:25 Elliot Clifton
2007-01-24 0:56 ` Mike Bird
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).