emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Douglas Bates <bates@stat.wisc.edu>
To: emacs-orgmode@gnu.org
Subject: Removing the blank lines between code and results blocks in LaTeX export
Date: Mon, 6 Sep 2010 12:09:44 -0500	[thread overview]
Message-ID: <AANLkTi=V_x2rP0LXNJZ=Rg_1WCjX7LoHPX8TOjq-wqa5@mail.gmail.com> (raw)

Recently Dan Davidson posted a patch to suppress the removal of blank
lines in exported source code.  I have the opposite problem -
suppression of blank lines added during LaTeX export

---- snip --- begin org file ----
* An R example with :exports both
The following code
#+begin_src R :exports both :results output
2 + 2
#+end_src
shows that there are blank lines added between the code and the
results sections in \LaTeX export.  Is this configurable? In \LaTeX{}
the blank lines cause a new paragraph which often I don't want.
--- snip --- end org file ---

Just copy those lines to an org file and export it to LaTeX to see what I mean.

A related issue is the LaTeX environment for the results.  At present
it is hard-wired in the function org-export-latex-fixed-width in
org-latex.el to be the verbatim environment.  I would like to
configure the appearance of the results using the LaTeX package
fancyvrb and it would be much easier if I could customize the strings
preceding and following the exported results.  The current strings are
"\\begin{verbatim}\n" and "\\end{verbatim}\n\n" and, again, the two
blank lines inserted after the results can be problematic.

             reply	other threads:[~2010-09-06 17:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-06 17:09 Douglas Bates [this message]
2010-09-09 13:08 ` [babel] Re: Removing the blank lines between code and results blocks in LaTeX export Austin F. Frank

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='AANLkTi=V_x2rP0LXNJZ=Rg_1WCjX7LoHPX8TOjq-wqa5@mail.gmail.com' \
    --to=bates@stat.wisc.edu \
    --cc=emacs-orgmode@gnu.org \
    /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).