2020-11-19 Vladimir Nikishkin wrote:

#+begin_src latex
\usepackage{xpatch}
\makeatletter
% This is not recommended, because it can break several things
\xpatchcmd{\@afterheading}{\@nobreaktrue}{\@nobreakfalse}{%
\typeout{WARNING: \string\@afterheading\space broken}%
}{%
\@latexerr{ERROR: Cannot patch \string\@afterheading}\@ehd%
}
\makeatother
#+end_src

Maybe introducing negative penalty *before* subsections would allow page breaks without undesired splitting between usual headers and immediately following paragraphs. I have not checked it, it is just an idea. I agree that such tricks should not be enabled by default.


Reply via email to