From: "Berry, Charles" <ccberry@ucsd.edu>
To: Karl Voit <news1142@Karl-Voit.at>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: :EXPORT_FILE_NAME: containing a date-stamp
Date: Wed, 7 Feb 2018 17:05:42 +0000 [thread overview]
Message-ID: <990C9C49-F7EB-42F6-B925-A1E299B4F1F9@ucsd.edu> (raw)
In-Reply-To: <2018-02-07T16-21-12@devnull.Karl-Voit.at>
> On Feb 7, 2018, at 7:31 AM, Karl Voit <devnull@Karl-Voit.at> wrote:
>
> What I want to achieve:
>
> *** My Report
> :PROPERTIES:
> :EXPORT_FILE_NAME: (format-time-string "%Y-%m-%d") Project Status.html
> :END:
>
> ... which results in the file: "2018-02-07 Project Status.html"
Use an `eval' macro.
In a more recent version than you use, this works:
* abc
:PROPERTIES:
:EXPORT_TITLE: {{{etitle(my title)}}}
:END:
#+macro: etitle (eval (concat (format-time-string "%Y-%m-%d") " " $1))
...
You might need to quote the `$1'. The quoting convention was changed recently.
HTH,
Chuck
next prev parent reply other threads:[~2018-02-07 17:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-07 15:31 :EXPORT_FILE_NAME: containing a date-stamp Karl Voit
2018-02-07 16:41 ` Kaushal Modi
2018-02-07 17:05 ` Berry, Charles [this message]
2018-02-07 17:37 ` Kaushal Modi
2018-02-07 18:06 ` Berry, Charles
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=990C9C49-F7EB-42F6-B925-A1E299B4F1F9@ucsd.edu \
--to=ccberry@ucsd.edu \
--cc=emacs-orgmode@gnu.org \
--cc=news1142@Karl-Voit.at \
/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).