From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: BUG: example/src blocks and latex export Date: Fri, 19 Aug 2011 23:27:47 +0200 Message-ID: <874o1d6qi4.fsf@gnu.org> References: <6977.1313748571@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuWb0-00080m-KT for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 17:27:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuWaw-0004aJ-BX for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 17:27:18 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:38345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuWaw-0004ZM-4v for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 17:27:14 -0400 Received: by wwf10 with SMTP id 10so2797712wwf.30 for ; Fri, 19 Aug 2011 14:27:07 -0700 (PDT) In-Reply-To: <6977.1313748571@alphaville.dokosmarshall.org> (Nick Dokos's message of "Fri, 19 Aug 2011 06:09:31 -0400") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org Hi Nick, Nick Dokos writes: > * foo > > Verbiage to begin the paragraph > #+begin_src shell > get-config.py var section [section ...] > #+end_src > and verbiage to end the same paragraph. > > * bar > > Verbiage to begin the paragraph > #+begin_example > get-config.py var section [section ...] > #+end_example > and verbiage to end the same paragraph. I tested your patch with the example above and I get this: ,---- | Verbiage to begin the paragraph | | \lstset{language=shell} | \begin{lstlisting} | get-config.py var section [section ...] | \end{lstlisting} | | and verbiage to end the same paragraph. | \section*{bar} | \label{sec-2} | | | Verbiage to begin the paragraph | | \begin{verbatim} | get-config.py var section [section ...] | \end{verbatim} | and verbiage to end the same paragraph. `---- It looks better than the current export (less white lines) but still has a problem with the first "and verbiage..." being indented. Is this intentional? Or do you want the same behavior for #+begin_src and #+begin_example? In overall, I think number of white lines should be the same in the Org source file and in the LaTeX exported file, so a patch here is welcome. But maybe I misunderstood something in Eric's reply. Thanks, -- Bastien