Re: [O] :EXPORT_FILE_NAME: containing a date-stamp

2018-02-07 Thread Berry, Charles
> On Feb 7, 2018, at 9:37 AM, Kaushal Modi wrote: > > On Wed, Feb 7, 2018 at 12:22 PM Berry, Charles wrote: > 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

Re: [O] :EXPORT_FILE_NAME: containing a date-stamp

2018-02-07 Thread Kaushal Modi
On Wed, Feb 7, 2018 at 12:22 PM Berry, Charles wrote: > 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)) > That wor

Re: [O] :EXPORT_FILE_NAME: containing a date-stamp

2018-02-07 Thread Berry, Charles
> On Feb 7, 2018, at 7:31 AM, Karl Voit 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 re

Re: [O] :EXPORT_FILE_NAME: containing a date-stamp

2018-02-07 Thread Kaushal Modi
On Wed, Feb 7, 2018 at 10:33 AM Karl Voit wrote: > :EXPORT_FILE_NAME: (format-time-string "%Y-%m-%d") Project Status.html > Yes, you cannot do that (How would Org know that you do not want to name your file literally like that? :)). Also you do not need to (should not?) provide the file extensi

[O] :EXPORT_FILE_NAME: containing a date-stamp

2018-02-07 Thread Karl Voit
Hi, Is there a possibility to define an export file name of a heading so that the resulting file contains a date-stamp? 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 Proj