From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: BUG: example/src blocks and latex export Date: Sun, 21 Aug 2011 12:28:51 -0600 Message-ID: <8739gubov0.fsf@gmail.com> References: <6977.1313748571@alphaville.dokosmarshall.org> <874o1d6qi4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvClZ-0004Xq-G4 for emacs-orgmode@gnu.org; Sun, 21 Aug 2011 14:29:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvClX-00065h-P8 for emacs-orgmode@gnu.org; Sun, 21 Aug 2011 14:29:01 -0400 Received: from mail-iy0-f175.google.com ([209.85.210.175]:50744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvClX-00065W-Hl for emacs-orgmode@gnu.org; Sun, 21 Aug 2011 14:28:59 -0400 Received: by iyn15 with SMTP id 15so7522675iyn.6 for ; Sun, 21 Aug 2011 11:28:58 -0700 (PDT) In-Reply-To: <874o1d6qi4.fsf@gnu.org> (Bastien's message of "Fri, 19 Aug 2011 23:27:47 +0200") 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: Bastien Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Bastien writes: > 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. > I had misread Nicks first email and thus my reply made no sense. I've applied this patch as it seems to be a definite improvement. Thanks! -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/