From: Nicolas Goaziou <n.goaziou@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: Thu, 09 May 2013 10:23:46 +0200 [thread overview]
Message-ID: <87txmco92l.fsf@gmail.com> (raw)
In-Reply-To: <CAFChFyhq1E2Tho5VG+BuStOtF11nCG8-5Apip7Kbxkbr6_ndXg@mail.gmail.com> (Gary Oberbrunner's message of "Wed, 8 May 2013 14:06:14 -0400")
Hello,
Gary Oberbrunner <garyo@oberbrunner.com> writes:
> 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).
Using a macro is another option:
#+MACRO: my-title Foo
#+TITLE: My Report: {{{my-title}}} Results
> ...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?
No there isn't. Org expects the produced file to sit in the same
directory with a similar name.
You have to rename it yourself after the export.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2013-05-09 8:23 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 [this message]
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=87txmco92l.fsf@gmail.com \
--to=n.goaziou@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).