From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xavier Garrido Subject: Re: Calling a source block with raw results Date: Sun, 04 Jan 2015 21:47:12 +0100 Message-ID: <54A9A6D0.7060206@gmail.com> References: <54A99AF4.2000809@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7s4w-00041x-Pv for emacs-orgmode@gnu.org; Sun, 04 Jan 2015 15:47:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7s4r-0006Rs-Ic for emacs-orgmode@gnu.org; Sun, 04 Jan 2015 15:47:14 -0500 Received: from mail-wg0-x236.google.com ([2a00:1450:400c:c00::236]:63070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7s4r-0006Rn-B8 for emacs-orgmode@gnu.org; Sun, 04 Jan 2015 15:47:09 -0500 Received: by mail-wg0-f54.google.com with SMTP id z12so8712959wgg.41 for ; Sun, 04 Jan 2015 12:47:08 -0800 (PST) In-Reply-To: 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: "Thomas S. Dye" Cc: "emacs-orgmode@gnu.org" Hi Tom, Le 04/01/2015 21:29, Thomas S. Dye a écrit : > Aloha Xavier, > > Xavier Garrido writes: > >> Since I am explicitly writing all the org code, I would like to call the >> function and gets a *raw* results by doing >> >> #+CALL: org-figure-to-slide[:exports none :results raw]() > > I think the problem is that you are specifying :results raw as an > 'inside header argument' rather than an 'end header argument'. Inside > header arguments affect ow the code block is evaluated. End header > arguments affect how the results are incorporated into the Org mode > buffer. See section 14.5 of the manual. > > Does the following call line do what you want? > > #+CALL: org-figure-to-slide() :results raw > Thanks for your quick answer. Nevertheless, adding :results raw at the end changes the formatting output but embeds everything within paren. Given your advice, I am pretty closed to what I want to do by adding another :results raw command either as an inside header arguments or directly when declaring the =org-figure-to-slide= code like #+NAME: org-figure-to-slide #+HEADERS: :var title="Empty title" #+HEADERS: :var dir="./figures" :var ext="*.pdf" #+HEADERS: :var options="" #+BEGIN_SRC sh :results raw .. #+END_SRC Thanks again for your help, Xavier > hth, > Tom >