emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Extra space after listings in LaTeX export with minted


From: Aaron Ecay
Subject: Re: [O] Extra space after listings in LaTeX export with minted
Date: Thu, 14 Mar 2013 19:03:11 -0400
User-agent: Notmuch/0.15.2+43~ge848af8 (http://notmuchmail.org) Emacs/24.3.50.1 (x86_64-unknown-linux-gnu)

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’t
leave a blank line after the \end{minted}.  But I don’t think org has a
way to represent/output such a thing.  If I’m wrong about that I hope
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.

-- 
Aaron Ecay



reply via email to

[Prev in Thread] Current Thread [Next in Thread]