Re: [O] export of formatted date macro fails
Hi, On Wed, 27 Sep 2017 13:21:14 + Kaushal Modiwrote: > On Wed, Sep 27, 2017, 8:52 AM Robert Klein wrote: > > > > > and later the macro > > > > {{{date(%A, %B %e, %Y)}} > > > > The exported document only has the "Sunday" (%A) part of the date. > > > > Same for {{{date(%A,%B%e,%Y)}}. > > > > , is used as Org macro arguments separator. So that needs to be > escaped with a backslash. > > Try: > > {{{date(%A\, %B %e\, %Y)}} > you're so right. IIRC I use it in some files, too. *Banging my head on the wall* Thank you very much!! Best regards Robert
Re: [O] export of formatted date macro fails
On Wed, Sep 27, 2017, 8:52 AM Robert Kleinwrote: > > and later the macro > > {{{date(%A, %B %e, %Y)}} > > The exported document only has the "Sunday" (%A) part of the date. > > Same for {{{date(%A,%B%e,%Y)}}. > , is used as Org macro arguments separator. So that needs to be escaped with a backslash. Try: {{{date(%A\, %B %e\, %Y)}} > -- Kaushal Modi
[O] export of formatted date macro fails
Hi, when I export a formatted date via the {{{date}}} macro _and_ use e.g. commas and/or spaces, I only get the first component in the exported file (tested for HTML and PDF export). E.g. in my document I have a date: #+DATE: [2008-11-09 Sun 11:00] and later the macro {{{date(%A, %B %e, %Y)}} The exported document only has the "Sunday" (%A) part of the date. Same for {{{date(%A,%B%e,%Y)}}. So far I see (org-timestamp-format timestamp "%A, %B %e, %Y") works for a timestamp created by (org-element-timestamp-parser). I don't understand the macro code at all (e.g.. org-macro-replace-all). Versions are: Org mode version 9.1.1 (release_9.1.1-7-g226d2f @ /home/roklein/.emacs.d/org-mode/lisp/) GNU Emacs 25.3.1 (x86_64-unknown-openbsd, GTK+ Version 2.24.31) of 2017-09-26 Any help is greatly appreciated. Thank you very much. Best regards Robert