emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug] Export to latex truncates long subsections (WE attached)


From: Maxim Nikulin
Subject: Re: [bug] Export to latex truncates long subsections (WE attached)
Date: Thu, 19 Nov 2020 18:09:54 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

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

[Prev in Thread] Current Thread [Next in Thread]