emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Aaron Ecay <aaronecay@gmail.com>
To: Richard Stanton <stanton@haas.berkeley.edu>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Extra space after listings in LaTeX export with minted
Date: Thu, 14 Mar 2013 19:03:11 -0400	[thread overview]
Message-ID: <87obela8k0.fsf@gmail.com> (raw)
In-Reply-To: <CD679247.13D4B%stanton@haas.berkeley.edu>

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	other threads:[~2013-03-14 23:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-14 17:34 Extra space after listings in LaTeX export with minted Richard Stanton
2013-03-14 18:30 ` Aaron Ecay
2013-03-14 21:44   ` Richard Stanton
2013-03-14 23:03     ` Aaron Ecay [this message]
2013-03-15 17:45       ` Nicolas Goaziou
2013-03-15 18:12         ` Richard Stanton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87obela8k0.fsf@gmail.com \
    --to=aaronecay@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=stanton@haas.berkeley.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).