emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Gary Oberbrunner <garyo@oberbrunner.com>
To: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Change title and export filename based on code value?
Date: Wed, 8 May 2013 14:06:14 -0400	[thread overview]
Message-ID: <CAFChFyhq1E2Tho5VG+BuStOtF11nCG8-5Apip7Kbxkbr6_ndXg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 867 bytes --]

             reply	other threads:[~2013-05-08 18:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-08 18:06 Gary Oberbrunner [this message]
2013-05-09  8:23 ` Change title and export filename based on code value? Nicolas Goaziou
2013-05-10  6:36 ` Carsten Dominik

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=CAFChFyhq1E2Tho5VG+BuStOtF11nCG8-5Apip7Kbxkbr6_ndXg@mail.gmail.com \
    --to=garyo@oberbrunner.com \
    --cc=emacs-orgmode@gnu.org \
    /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).