emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Xavier Garrido <xavier.garrido@gmail.com>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Calling a source block with raw results
Date: Sun, 04 Jan 2015 21:47:12 +0100	[thread overview]
Message-ID: <54A9A6D0.7060206@gmail.com> (raw)
In-Reply-To: <m2ppaucmrm.fsf@tsdye.com>

Hi Tom,

Le 04/01/2015 21:29, Thomas S. Dye a écrit :
> Aloha Xavier,
>
> Xavier Garrido <xavier.garrido@gmail.com> 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
>

      reply	other threads:[~2015-01-04 20:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-04 19:56 Calling a source block with raw results Xavier Garrido
2015-01-04 20:29 ` Thomas S. Dye
2015-01-04 20:47   ` Xavier Garrido [this message]

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=54A9A6D0.7060206@gmail.com \
    --to=xavier.garrido@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tsd@tsdye.com \
    /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).