From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Bug in export of call lines Date: Mon, 10 Mar 2014 16:45:19 -1000 Message-ID: References: <87ha768d12.fsf@gmail.com> <87k3c2vts2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNChE-0008Td-De for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 22:45:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNCh7-0002DS-Cn for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 22:45:36 -0400 Received: from oproxy16-pub.mail.unifiedlayer.com ([69.89.22.201]:58081) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1WNCh7-0002CN-5L for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 22:45:29 -0400 In-Reply-To: <87k3c2vts2.fsf@gmail.com> (Eric Schulte's message of "Mon, 10 Mar 2014 11:38:05 -0600") 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: Eric Schulte Cc: Nicolas Goaziou , Org-mode Eric Schulte writes: > Somehow this doesn't seem to be a problem with other languages, so I > believe the necessary fix may be R specific. Following is a small test that appears to indicate that the bug is R specific and only bites when the source code block has :results raw. #+DATE: \today #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: #+LATEX_HEADER: #+LATEX_HEADER_EXTRA: * Export this subtree to LaTeX :PROPERTIES: :results: raw :END: Will lisp-2 export call_lisp-2() with a newline? Will python-2 export call_python-2() with a newline? Will r-2 export call_r-2() with a newline? Will lisp-2-raw export call_lisp-2-raw() with a newline? Will python-2-raw export call_python-2-raw() with a newline? Will r-2-raw export call_r-2-raw() with a newline? * Similar code in three languages #+name: lisp-2 #+begin_src lisp (+ 1 1) #+end_src #+name: python-2 #+begin_src python return(1 + 1) #+end_src #+name: r-2 #+begin_src R 1 + 1 #+end_src #+name: lisp-2-raw #+begin_src lisp :results raw (+ 1 1) #+end_src #+name: python-2-raw #+begin_src python :results raw return(1 + 1) #+end_src #+name: r-2-raw #+begin_src R :results raw 1 + 1 #+end_src Here is the relevant portion of the LaTeX export: Will lisp-2 export 2 with a newline? Will python-2 export 2 with a newline? Will r-2 export 2 with a newline? Will lisp-2-raw export 2 with a newline? Will python-2-raw export 2 with a newline? Will r-2-raw export 2 with a newline? % Emacs 24.3.1 (Org mode 8.2.5h) All the best, Tom -- Thomas S. Dye http://www.tsdye.com