[NTG-context] Keeping section and subsection together

Procházka Lukáš Ing. - Pontex s. r. o. LPr at pontex.cz
Thu Apr 23 11:50:18 CEST 2015


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?

Kind regards,

Lukas


-- 
Ing. Lukáš Procházka | mailto:LPr at pontex.cz
Pontex s. r. o.      | mailto:pontex at pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-Sec.mkiv
Type: application/octet-stream
Size: 113 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150423/c916f128/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-Sec.pdf
Type: application/pdf
Size: 12042 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150423/c916f128/attachment.pdf>


More information about the ntg-context mailing list