From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: [Babel] Headers: variable in output file name? Date: Fri, 02 Oct 2015 11:23:04 +0200 Message-ID: <87pp0x8w07.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhwYg-0005A7-Si for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 05:23:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZhwYc-0000X0-VU for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 05:23:18 -0400 Received: from plane.gmane.org ([80.91.229.3]:41703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhwYc-0000WA-ON for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 05:23:14 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZhwYY-0007Fn-6v for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 11:23:10 +0200 Received: from hornfels.zedat.fu-berlin.de ([160.45.11.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Oct 2015 11:23:10 +0200 Received: from loris.bennett by hornfels.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Oct 2015 11:23:10 +0200 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@gnu.org Hi, I have #+NAME: myplot #+HEADER: :var type="A" #+HEADER: :results output graphics #+HEADER: :file test.pdf :exports both #+BEGIN_SRC R #+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.