From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: Extra space after listings in LaTeX export with minted Date: Thu, 14 Mar 2013 19:03:11 -0400 Message-ID: <87obela8k0.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGHB4-0003ib-Lu for emacs-orgmode@gnu.org; Thu, 14 Mar 2013 19:03:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGHB3-0002IT-HN for emacs-orgmode@gnu.org; Thu, 14 Mar 2013 19:03:14 -0400 Received: from mail-ve0-f178.google.com ([209.85.128.178]:42708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGHB3-0002IJ-Dc for emacs-orgmode@gnu.org; Thu, 14 Mar 2013 19:03:13 -0400 Received: by mail-ve0-f178.google.com with SMTP id db10so2180245veb.9 for ; Thu, 14 Mar 2013 16:03:13 -0700 (PDT) In-Reply-To: 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: Richard Stanton Cc: "emacs-orgmode@gnu.org" Hi Richard, You should be able to get rid of that indentation by arranging for the text after the listing end to begin with \noindent{} (in LaTeX). This should be as simple, in org, as: ... #+END_SRC \noindent{}Lorem ipsum... I am not sure there is a way to automate the \noindent: LaTeX indents the beginning of paragraphs, and in org there is no way to have a paragraph that contains a source listing. (In latex there is: don=E2=80=99t leave a blank line after the \end{minted}. But I don=E2=80=99t think org h= as a way to represent/output such a thing. If I=E2=80=99m wrong about that I ho= pe Nicolas or someone else knowledgeable will chime in.) I suppose it would be possible to write a filter to post-process the LaTeX output, and delete single blank lines after an \end{foo}, and indicate desired paragraph breaks with double blank lines. --=20 Aaron Ecay