On 6-5-2010 11:33, Otared Kavian wrote:

On 6 mai 2010, at 11:13, Wolfgang Schuster wrote:

Am 06.05.10 10:46, schrieb Otared Kavian:
Hi Peter,

I had noticed such strange page breaks before and since it was always in small 
documents (maths problem sheets), I used an elementary workaround which 
consists in adding a \medskip or \smallskip before every \section. Actually 
analogous bad page breaks happen in Plain TeX with \beginsection.
Regarding the minimal example you sent, adding
\setuphead[section][before=\smallskip]
to the top of your document, solves the problem appearing in the first section. 
I don't know whether this solves all other strange page breaks or not.

You should at least keep the original space before the \section.

\setuphead[section][before={\allowbreak\blank[2*big]}]

{\testpage[5]\blank[2*big]}

this will make sure that at least there are 5 line equivalents of text.

(I want to integrate that in the spacing code.)

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
___________________________________________________________________________________

Reply via email to