From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Nikishkin Subject: Re: [bug] Export to latex truncates long subsections (WE attached) Date: Tue, 27 Aug 2019 14:57:12 +0800 Message-ID: References: <87sgpow94z.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:52544) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2VQ1-0006sY-3d for emacs-orgmode@gnu.org; Tue, 27 Aug 2019 02:57:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i2VPz-0002Lh-Vw for emacs-orgmode@gnu.org; Tue, 27 Aug 2019 02:57:29 -0400 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:44693) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i2VPz-0002Kp-Pl for emacs-orgmode@gnu.org; Tue, 27 Aug 2019 02:57:27 -0400 Received: by mail-ed1-x52e.google.com with SMTP id a21so29929702edt.11 for ; Mon, 26 Aug 2019 23:57:25 -0700 (PDT) In-Reply-To: <87sgpow94z.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Vladimir Nikishkin , emacs-orgmode@gnu.org I have indeed investigated the issue, and this is the link: https://latex.org/forum/viewtopic.php?f=3D47&t=3D32788 To make the long story short, the folowing trick is needed to allow page breaks after headings (which is a completely standard case in -org). #+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 Shall this trick be considered for inclusion in 'org' officially? I mean, having lists of empty headings is a perfectly standard use case for= org. =D0=BF=D0=BD, 26 =D0=B0=D0=B2=D0=B3. 2019 =D0=B3. =D0=B2 17:47, Nicolas Goa= ziou : > > Hello, > > Vladimir Nikishkin writes: > > > I have a problem in that when I try to export an .org file into latex/p= df, > > long sections are not wrapped to the next page, but are truncated inste= ad. > > > > The result is on the picture (points 10.34 to 10.37 missing), and the > > (not)working example is attached to this email. > > The LaTeX code generated by Org looks correct. > > I tried to remove all \label{...}, all \href{...} from the ".tex" file, > but the problem is still the same. > > It may be a LaTeX issue, not an Org one. You may want to investigate in > this direction. > > HTH, > > Regards, > > -- > Nicolas Goaziou --=20 Yours sincerely, Vladimir Nikishkin