On 4/24/2015 7:32 AM, Pablo Rodriguez wrote:
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?
actually there is rather complex code in the core that deals with it ..
(and also deals with too many on one page and so, as it's a weighted
system) ... i just checked and a variable is not reset .. fixed in an
upcoming beta (no upload yet, first alan and i need to agree on some bib
issues working ok)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________