emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Babel] Headers: variable in output file name?
@ 2015-10-02  9:23 Loris Bennett
  0 siblings, 0 replies; only message in thread
From: Loris Bennett @ 2015-10-02  9:23 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I have 

#+NAME: myplot
#+HEADER: :var type="A"
#+HEADER: :results output graphics
#+HEADER: :file test.pdf :exports both
#+BEGIN_SRC R
<some plot generating code with 'type' as an argument>
#+END_SRC
and call 

#+CALL: myplot(type="A")
#+CALL: myplot(type="B")

but instead of getting 'test.pdf' in both cases, I would like to have
the type in the name of the output files, say,

A.pdf
B.pdf

Is there anyway to achieve this?

(I can in fact add the variable to the name of the output file within
the source block, but I wondered whether it is possible via the Babel
headers.)

Cheers,

Loris
-- 
This signature is currently under construction.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-02  9:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-02  9:23 [Babel] Headers: variable in output file name? Loris Bennett

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).