From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Change title and export filename based on code value? Date: Fri, 10 May 2013 08:36:03 +0200 Message-ID: <46EA2A62-38CD-48D6-A1CD-D50147E5FEB9@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uagw5-0004j2-9B for emacs-orgmode@gnu.org; Fri, 10 May 2013 02:36:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uagw3-0000Hm-1a for emacs-orgmode@gnu.org; Fri, 10 May 2013 02:36:09 -0400 Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]:47691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uagw2-0000Hc-Qw for emacs-orgmode@gnu.org; Fri, 10 May 2013 02:36:06 -0400 Received: by mail-wg0-f50.google.com with SMTP id m15so3802425wgh.29 for ; Thu, 09 May 2013 23:36:06 -0700 (PDT) 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: Gary Oberbrunner Cc: Orgmode Mailing List On 8.5.2013, at 20:06, Gary Oberbrunner wrote: > 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. >=20 > I have a source block like this: >=20 > #+NAME: reporttype > #+BEGIN_SRC elisp :results value silent :exports results > "Foo" > #+END_SRC >=20 > I figured out how to do the title: >=20 > #+TITLE My Report: call_reporttype()[:results raw] Results >=20 > which is pretty neat (but wasn't easy to figure out, I'll work on that = in the doc). >=20 > ...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? As Nicolas says, there is no support for this. But if you are exporting specific subtrees, you can give export file = names for subtrees using the EXPORT_FILE_NAME property. - Carsten=