emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Gary Oberbrunner <garyo@oberbrunner.com>
Cc: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: Change title and export filename based on code value?
Date: Fri, 10 May 2013 08:36:03 +0200	[thread overview]
Message-ID: <46EA2A62-38CD-48D6-A1CD-D50147E5FEB9@gmail.com> (raw)
In-Reply-To: <CAFChFyhq1E2Tho5VG+BuStOtF11nCG8-5Apip7Kbxkbr6_ndXg@mail.gmail.com>


On 8.5.2013, at 20:06, Gary Oberbrunner <garyo@oberbrunner.com> 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.
> 
> 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?

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

      parent reply	other threads:[~2013-05-10  6:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-08 18:06 Change title and export filename based on code value? Gary Oberbrunner
2013-05-09  8:23 ` Nicolas Goaziou
2013-05-10  6:36 ` Carsten Dominik [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=46EA2A62-38CD-48D6-A1CD-D50147E5FEB9@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=garyo@oberbrunner.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).