* preventing page breaks after headings
@ 2012-06-10 18:52 Alan Bowen
2012-06-10 19:13 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Alan Bowen @ 2012-06-10 18:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 411 bytes --]
Is there a way in MKII to ensure that there is never a page break between a
heading and the following text?
\setuphead[after={\page[no]}] does not seem to work without entering
vertical mode before \page. But, so far, I have not found a way to enter
vertical mode in after={…} that does not add interlinespace and thus place
the text too far from the heading.
Any suggestion or alternatives?
Alan
[-- Attachment #1.2: Type: text/html, Size: 504 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: preventing page breaks after headings
2012-06-10 18:52 preventing page breaks after headings Alan Bowen
@ 2012-06-10 19:13 ` Wolfgang Schuster
2012-06-12 12:17 ` Alan Bowen
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2012-06-10 19:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 10.06.2012 um 20:52 schrieb Alan Bowen:
> Is there a way in MKII to ensure that there is never a page break between a heading and the following text?
>
> \setuphead[after={\page[no]}] does not seem to work without entering vertical mode before \page. But, so far, I have not found a way to enter vertical mode in after={…} that does not add interlinespace and thus place the text too far from the heading.
>
> Any suggestion or alternatives?
Do you have a example where you get an unwanted page break because context tries to prevent it.
When you can’t make one in a short time try one of the following methods:
1. Insert a page break before the heading when not enough space is available.
\setuphead[…][before={\testpage[6]\blank[…]}]
2. Add a big penalty before the vertical space after the heading (don’t use this method in mkiv).
\setuphead[…][after={\nobreak\blank[…]}]
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: preventing page breaks after headings
2012-06-10 19:13 ` Wolfgang Schuster
@ 2012-06-12 12:17 ` Alan Bowen
0 siblings, 0 replies; 3+ messages in thread
From: Alan Bowen @ 2012-06-12 12:17 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1847 bytes --]
Thanks!, Wolfgang. As ever, you are a life saver. I was able to remove all
but one of the weird page breaks using your suggestions. The last one was
resolved by moving a \startegister a few words further along in the
paragraph.
Alan
On Sun, Jun 10, 2012 at 3:13 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:
>
> Am 10.06.2012 um 20:52 schrieb Alan Bowen:
>
> > Is there a way in MKII to ensure that there is never a page break
> between a heading and the following text?
> >
> > \setuphead[after={\page[no]}] does not seem to work without entering
> vertical mode before \page. But, so far, I have not found a way to enter
> vertical mode in after={…} that does not add interlinespace and thus place
> the text too far from the heading.
> >
> > Any suggestion or alternatives?
>
> Do you have a example where you get an unwanted page break because context
> tries to prevent it.
>
> When you can’t make one in a short time try one of the following methods:
>
>
> 1. Insert a page break before the heading when not enough space is
> available.
>
> \setuphead[…][before={\testpage[6]\blank[…]}]
>
>
> 2. Add a big penalty before the vertical space after the heading (don’t
> use this method in mkiv).
>
> \setuphead[…][after={\nobreak\blank[…]}]
>
>
> 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://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2561 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-12 12:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-10 18:52 preventing page breaks after headings Alan Bowen
2012-06-10 19:13 ` Wolfgang Schuster
2012-06-12 12:17 ` Alan Bowen
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).