From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Girard Subject: Re: Re: [PATCH] Suppress extra newlines around source code in LaTeX export Date: Thu, 10 Dec 2009 00:56:32 +0100 Message-ID: <51b0095d0912091556m3121b9d4r4528889b03c46aa0@mail.gmail.com> References: <51b0095d0912011303n73abddefjfd37fa9fab055c03@mail.gmail.com> <51b0095d0912050358v4e0ec999k9a4e5826877ea995@mail.gmail.com> <51b0095d0912091450h6be7087bv2c68f9bd0b857a64@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NIWOd-0003ic-Hn for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 18:56:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NIWOY-0003gr-Bi for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 18:56:38 -0500 Received: from [199.232.76.173] (port=39198 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIWOY-0003gl-73 for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 18:56:34 -0500 Received: from mail-fx0-f213.google.com ([209.85.220.213]:48460) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NIWOX-0006FP-Li for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 18:56:33 -0500 Received: by fxm5 with SMTP id 5so7397114fxm.8 for ; Wed, 09 Dec 2009 15:56:33 -0800 (PST) In-Reply-To: <51b0095d0912091450h6be7087bv2c68f9bd0b857a64@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode 2009/12/9 Nicolas Girard : > 2009/12/9 Carsten Dominik : >> Hi Nicolas, >> >> I need additional information with respect to this patch: >> > >>> diff --git a/lisp/org-latex.el b/lisp/org-latex.el >>> index ce697a3..18c2183 100644 >>> --- a/lisp/org-latex.el >>> +++ b/lisp/org-latex.el >>> @@ -877,7 +877,7 @@ If NUM, export sections as numerical sections." >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (delete-region (point-at-bol 0) (point)= ) >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 (insert (format "\\begin{%s}\n" >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (symbol-nam= e org-export-latex-low-levels)))) >>> - =A0 =A0 =A0 =A0 =A0 =A0(insert (format "\n\\item %s\\\\\n%s\n" >>> + =A0 =A0 =A0 =A0 =A0 =A0(insert (format "\\item %s\n%s" >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 heading >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (if label (form= at "\\label{%s}" label) ""))) >>> =A0 =A0 =A0 =A0 =A0 =A0 (insert (org-export-latex-content content)) >> >> Why would you like to remove the "\\" as well? =A0When itemize lists are= used >> to format headlines, I think there should be a line break after the end = of >> the original headline. =A0Otherwise the text below the headline will flo= w into >> the headline. =A0Or am I missing something here? > > I think you're right ; I may have been abused by what Adobe Reader > displayed when performing my tests, as I just discovered that, for > whatever reason, it doesn't always reload the pdf file when using > > Actually I do remember why I considered removing the '\\' : take this docum= ent: #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Level 1 ** Level 2 *** Level 3 **** Level 4 - itemized - list #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Since "Level 4" is expressed as an item, the only way of getting the correct output is *not* to have any '\\' between "Level 4" and "itemized". That is, in LaTeX, not to have '\\' between \item Level 4 and \begin{itemize} \item itemized \item list \end{itemize} --=20 Nicolas