From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Using :results output org with new exporter exporting as verbatim with LaTeX Date: Fri, 22 Mar 2013 18:05:59 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJB2A-0007ee-VK for emacs-orgmode@gnu.org; Fri, 22 Mar 2013 19:06:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJB29-0006kV-Ic for emacs-orgmode@gnu.org; Fri, 22 Mar 2013 19:06:02 -0400 Received: from mail-la0-x233.google.com ([2a00:1450:4010:c03::233]:43899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJB29-0006kR-BO for emacs-orgmode@gnu.org; Fri, 22 Mar 2013 19:06:01 -0400 Received: by mail-la0-f51.google.com with SMTP id fo13so8315899lab.10 for ; Fri, 22 Mar 2013 16:06:00 -0700 (PDT) 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: emacs-orgmode I have an org file with R src block that spits out some file names to embed. I don't think I need to reproduce the block for testing purposes, but the gist is that I use cat() to spit out some =3D#+begin_center=3D and =3D[[filename]]=3D stuff. R code block header: #+name: src-block-name #+begin_src R :session r :exports results :results output org I'm getting a results block like so: #+RESULTS: src-block-name #+BEGIN_SRC org [[./plots/filename1.pdf]] [[./plots/filename2.pdf]] [[./plots/filename3.pdf]] #+END_SRC I used this setup previously (and successfully) as described in this mailing list thread. That particular post described my near successful block, with the same sort of cat(paste()) commands I was using to output the filenames in [[filename.pdf]] orgmode syntax. The final success happened at the very end when Eric Schulte suggested I change from :results output raw to :results output org. - http://lists.gnu.org/archive/html/emacs-orgmode/2012-08/msg01222.html Hence, I started with :results output org this time, but it didn't work. It's being exported verbatim using =3DC-c C-e l p=3D. (Appears in \begin{verbatim} ... \end{verbatim} in the output .tex file) If I change to :results output raw, I simply get: #+results [[filename.pdf]] This exports correctly. If I change the :results output org #+results block to the following, it also works correctly: #+begin_org [[filename.pdf]] #+end_org >From the ob-doc-R, it appears that orgmode export might be expecting #+begin_org, not #+begin_src org: - http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html #+begin_quote The Org Mode source code block specifies :results org so the output is wrapped in #+BEGIN_ORG =E2=80=A6 #+END_ORG. This way, arbitrary output can = be included and easily replaced on subsequent evaluations of the source code block. #+end_quote Let me know the current proper way to accomplish what I'm trying to do. Thanks, John