On 05/26/2016 10:56 AM, Andrea Valle wrote:
> Dear all, 
> 
> I’m finishing a book, and getting the following undesired result.
> Many times I have section or subsection title at the bottom of a page,
> with no text. Text starts on the next page.
> I have looked at 
> 
> http://wiki.contextgarden.net/Widows_and_orphans_control
> 
> but I wasn’t able to solve.
> 
> I guess it could depend on the formatting of my headlines. Here they are: 
> 
> \setuphead[section]
> [style=\ss\tfa,
> before={\blank[0.5cm]\startframedtext[offset=0.25cm,framecolor=black,
> rulethickness=0.01cm, frame=off, topframe=off,
>  bottomframe=on]\crlf},after={\stopframedtext\noindentation\blank[1cm]}]
> 
> \setuphead[subsection]
> [style=\ss,
> before={\blank[0.5cm]\startframedtext[offset=0.25cm,framecolor=black,
> rulethickness=0.01cm, frame=off, topframe=off,
>  bottomframe=on]\crlf},after={\stopframedtext\noindentation\blank[1cm]}]

Hi Andrea,

you may replace \blank[1cm] with \blank[samepage,1cm].

This should move the heading to the next page.

Just in case it helps,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to