From mboxrd@z Thu Jan 1 00:00:00 1970 From: Douglas Bates Subject: Removing the blank lines between code and results blocks in LaTeX export Date: Mon, 6 Sep 2010 12:09:44 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=55679 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsfCU-0000GF-Ot for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 13:09:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsfCT-0007ES-NO for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 13:09:46 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:61142) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsfCT-0007EI-KZ for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 13:09:45 -0400 Received: by iwn33 with SMTP id 33so6404111iwn.0 for ; Mon, 06 Sep 2010 10:09:44 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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.