# [NTG-context] How ConTeXt manages section's label at the bottom of a page ?

Hans Hagen pragma at wxs.nl
Tue Jul 11 19:31:09 CEST 2006

```Renaud AUBIN wrote:
>
> Hi all,
>
> Considering this piece of code:
> \section{A title of section}
> Here we have some texts....
>
> resulting to the following theoretical situation before correction:
> at the bottom of the page 1: A title of section
> at the top of the page 2: Here we have some texts....
>
> Is ConTeXt smart enough to apply this kind of correction during
> processing:
> page 1: whatever before \section call
> page 2:
> A title of section
> Here we have some texts....
>
> Apparently, Taco told me on #context that this is the case... But in
> fact, I have this kind on problem with a \subsubsection call.
> If it is implemented, can we fine-tune the behaviour of the
> correction. For example, Considering a section label followed by only
> two lines of text, can we push this label+text to the newt page ?
normally

\section{xx}
\subsection{xx}

paragraph

should not result in dangling section titles, it only fails when the \subsection is followed by something that add a goodbreak or something similar or skips

Hans

-----------------------------------------------------------------