From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: [PATCH] Suppress extra newlines around source code in LaTeX export Date: Thu, 10 Dec 2009 09:08:53 +0100 Message-ID: <1A1EF196-9F26-4325-BE02-A78896E32397@gmail.com> References: <51b0095d0912011303n73abddefjfd37fa9fab055c03@mail.gmail.com> <51b0095d0912050358v4e0ec999k9a4e5826877ea995@mail.gmail.com> <51b0095d0912091450h6be7087bv2c68f9bd0b857a64@mail.gmail.com> <51b0095d0912091556m3121b9d4r4528889b03c46aa0@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NIehh-0005ag-Qc for emacs-orgmode@gnu.org; Thu, 10 Dec 2009 03:48:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NIehd-0005V6-Lv for emacs-orgmode@gnu.org; Thu, 10 Dec 2009 03:48:53 -0500 Received: from [199.232.76.173] (port=35854 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIehd-0005Up-H6 for emacs-orgmode@gnu.org; Thu, 10 Dec 2009 03:48:49 -0500 Received: from ey-out-1920.google.com ([74.125.78.148]:21708) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NIehd-0000rW-4H for emacs-orgmode@gnu.org; Thu, 10 Dec 2009 03:48:49 -0500 Received: by ey-out-1920.google.com with SMTP id 3so318283eyh.2 for ; Thu, 10 Dec 2009 00:48:48 -0800 (PST) In-Reply-To: <51b0095d0912091556m3121b9d4r4528889b03c46aa0@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: Nicolas Girard Cc: emacs-orgmode On Dec 10, 2009, at 12:56 AM, Nicolas Girard wrote: > 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." >>>> (delete-region (point-at-bol 0) (point)) >>>> (insert (format "\\begin{%s}\n" >>>> (symbol-name org-export-latex-low- >>>> levels)))) >>>> - (insert (format "\n\\item %s\\\\\n%s\n" >>>> + (insert (format "\\item %s\n%s" >>>> heading >>>> (if label (format "\\label{%s}" >>>> label) ""))) >>>> (insert (org-export-latex-content content)) >>> >>> Why would you like to remove the "\\" as well? When itemize lists >>> are used >>> to format headlines, I think there should be a line break after >>> the end of >>> the original headline. Otherwise the text below the headline will >>> flow into >>> the headline. Or 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 document: > > #============= > Level 1 > > ** Level 2 > > *** Level 3 > > **** Level 4 > - itemized > - list > #============= > > 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} OK, I am catching this case now as well. Let me know if it works all right now. - Carsten