* prevent page break after head
@ 2010-09-29 8:21 Andreas Harder
2010-09-29 8:29 ` Steffen Wolfrum
2010-09-29 11:22 ` Wolfgang Schuster
0 siblings, 2 replies; 5+ messages in thread
From: Andreas Harder @ 2010-09-29 8:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi all,
please have a look at the following example:
\starttext \showframe
\section{test}
\dorecurse{36}{test\par}
\section{test}
\startitemize
\dorecurse{12}{\item #1}
\stopitemize
% \dorecurse{12}{• #1\blank}
\stoptext
I would like to prevent the page break after the second section. It works okay if the head is followed by normal text.
Is there a key I have not found yet? I tried all kind of combinations …
Greeting
Andreas
___________________________________________________________________________________
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] 5+ messages in thread
* Re: prevent page break after head
2010-09-29 8:21 prevent page break after head Andreas Harder
@ 2010-09-29 8:29 ` Steffen Wolfrum
2010-09-29 8:42 ` Andreas Harder
2010-09-29 11:22 ` Wolfgang Schuster
1 sibling, 1 reply; 5+ messages in thread
From: Steffen Wolfrum @ 2010-09-29 8:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 29.09.2010 um 10:21 schrieb Andreas Harder:
> Hi all,
>
> please have a look at the following example:
>
> \starttext \showframe
> \section{test}
> \dorecurse{36}{test\par}
> \section{test}
> \startitemize
> \dorecurse{12}{\item #1}
> \stopitemize
> % \dorecurse{12}{• #1\blank}
> \stoptext
>
> I would like to prevent the page break after the second section. It works okay if the head is followed by normal text.
>
> Is there a key I have not found yet? I tried all kind of combinations …
Just add a \testpage[4] before the second \section{test}
Steffen
___________________________________________________________________________________
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] 5+ messages in thread
* Re: prevent page break after head
2010-09-29 8:29 ` Steffen Wolfrum
@ 2010-09-29 8:42 ` Andreas Harder
0 siblings, 0 replies; 5+ messages in thread
From: Andreas Harder @ 2010-09-29 8:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 29.09.2010 um 10:29 schrieb Steffen Wolfrum:
>
> Am 29.09.2010 um 10:21 schrieb Andreas Harder:
>
>> Hi all,
>>
>> please have a look at the following example:
>>
>> \starttext \showframe
>> \section{test}
>> \dorecurse{36}{test\par}
>> \section{test}
>> \startitemize
>> \dorecurse{12}{\item #1}
>> \stopitemize
>> % \dorecurse{12}{• #1\blank}
>> \stoptext
>>
>> I would like to prevent the page break after the second section. It works okay if the head is followed by normal text.
>>
>> Is there a key I have not found yet? I tried all kind of combinations …
>
>
> Just add a \testpage[4] before the second \section{test}
Thank you! This works. So I will try \setuphead[section][before={\testpage[4]\blank[2*big]}]. But I'm curious, why do it work with normal text?
\starttext \showframe
\section{test}
\dorecurse{36}{test\par}
\section{test}
\dorecurse{12}{• #1\blank}
\stoptext
Andreas
___________________________________________________________________________________
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] 5+ messages in thread
* Re: prevent page break after head
2010-09-29 8:21 prevent page break after head Andreas Harder
2010-09-29 8:29 ` Steffen Wolfrum
@ 2010-09-29 11:22 ` Wolfgang Schuster
2010-09-29 12:24 ` Andreas Harder
1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2010-09-29 11:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 29.09.2010 um 10:21 schrieb Andreas Harder:
> Hi all,
>
> please have a look at the following example:
>
> \starttext \showframe
> \section{test}
> \dorecurse{36}{test\par}
> \section{test}
> \startitemize
\startitemize[intro]
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] 5+ messages in thread
* Re: prevent page break after head
2010-09-29 11:22 ` Wolfgang Schuster
@ 2010-09-29 12:24 ` Andreas Harder
0 siblings, 0 replies; 5+ messages in thread
From: Andreas Harder @ 2010-09-29 12:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 29.09.2010 um 13:22 schrieb Wolfgang Schuster:
>
> Am 29.09.2010 um 10:21 schrieb Andreas Harder:
>
>> Hi all,
>>
>> please have a look at the following example:
>>
>> \starttext \showframe
>> \section{test}
>> \dorecurse{36}{test\par}
>> \section{test}
>> \startitemize
>
> \startitemize[intro]
Thank you for both hints, Wolfgang!
Andreas
___________________________________________________________________________________
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] 5+ messages in thread
end of thread, other threads:[~2010-09-29 12:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-29 8:21 prevent page break after head Andreas Harder
2010-09-29 8:29 ` Steffen Wolfrum
2010-09-29 8:42 ` Andreas Harder
2010-09-29 11:22 ` Wolfgang Schuster
2010-09-29 12:24 ` Andreas Harder
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).