[NTG-context] Keeping section and subsection together

Pablo Rodriguez oinos at gmx.es
Fri Apr 24 07:32:54 CEST 2015


On 04/23/2015 11:50 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
> Hello,
> 
> the following sample generates section title "5 Sec" as a
> last/solitary heading (section) on the page.
> 
> ----
> \starttext
>    \dorecurse{5}{
>      \section{Sec}
>        \subsection{Subsec}
>          \input ward
>    }
> \stoptext
> ----
> 
> Is there a way to bind it with the next head (subsection) - so that
> "5 Sec", "5.1 Subsec" (and at least one line of the following
> paragraph) would be together on one page?

Hi Lukáš,

add the following to the document preamble:

    \setuphead[section][after={\blank[samepage,big]}]

BTW, could you add this to http://wiki.contextgarden.net/Titles?

Many thanks,


Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list