[luatex] Refuses to page break between section headings

Ulrike Fischer luatex at nililand.de
Mon Mar 9 23:45:14 CET 2015


Am Mon, 9 Mar 2015 23:34:21 +0100 schrieb Reinhard Kotucha:

>  > I hadn't seen that you are creating an one-time, rather small which
>  > is needed soon document. In this case both \clearpage (forced
>  > pagebreak) or \filbreak (allows a break) is ok.
> 
> Ulrike,
> at a first glance is seems that \filbreak is the best solution because
> one could consider to redefine the section command:
> 
>   \newcommand\Section[1]{\section{#1}\filbreak}
> 
> It works like a charm if the paragraph fits on the current page, but
> unfortunately it's moved to the next page if there isn't enough space
> on the current page. 

If I wanted to insert \filbreak automatically (and not only when
there is no text after a section) I would put it before the
\section.


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the luatex mailing list