From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Oberbrunner Subject: Change title and export filename based on code value? Date: Wed, 8 May 2013 14:06:14 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0149ca5c28f62304dc38caa3 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ua8kr-0002Bf-3b for emacs-orgmode@gnu.org; Wed, 08 May 2013 14:06:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ua8kp-0006Bn-U5 for emacs-orgmode@gnu.org; Wed, 08 May 2013 14:06:17 -0400 Received: from mail-oa0-f47.google.com ([209.85.219.47]:64311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ua8kp-0006Bh-PD for emacs-orgmode@gnu.org; Wed, 08 May 2013 14:06:15 -0400 Received: by mail-oa0-f47.google.com with SMTP id m17so283007oag.6 for ; Wed, 08 May 2013 11:06:14 -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: Orgmode Mailing List --089e0149ca5c28f62304dc38caa3 Content-Type: text/plain; charset=ISO-8859-1 I'd like to change the title of my report, and the exported pdf filename, based on a value I can change in the org-mode source. I have a source block like this: #+NAME: reporttype #+BEGIN_SRC elisp :results value silent :exports results "Foo" #+END_SRC I figured out how to do the title: #+TITLE My Report: call_reporttype()[:results raw] Results which is pretty neat (but wasn't easy to figure out, I'll work on that in the doc). ...but I'd also like to set the exported PDF filename based on the reporttype, but I'm not sure there is an option for that. Is there? And if there is, is there a way to interpolate my reporttype into it? -- Gary --089e0149ca5c28f62304dc38caa3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I'd like to change the title of my report, and th= e exported pdf filename, based on a value I can change in the org-mode sour= ce.

I have a source block like this:

#+NAME: reporttype=
#+BEGIN_SRC elisp :results value silent :exports results
"Foo"=
#+END_SRC

I figured out how to do the title:

<= div>
#+TITLE My Report: call_reporttype()[:results raw] Results

which is pretty neat (but wasn't easy to figure out, I&#= 39;ll work on that in the doc).

...but I'd= also like to set the exported PDF filename based on the reporttype, but I&= #39;m not sure there is an option for that.=A0 Is there?=A0 And if there is= , is there a way to interpolate my reporttype into it?

--
Gary
--089e0149ca5c28f62304dc38caa3--