Re: source block evaluation in #+DATE line

2022-05-12 Thread Andreas Leha
Dear Eric, Eric S Fraga writes: > On Wednesday, 11 May 2022 at 17:50, Eric S Fraga wrote: >> ⚠️ Caution: External sender >> >> >> On Wednesday, 11 May 2022 at 05:15, Andreas Leha wrote: >>> Thanks for the comments. And sorry for the misleading example. I do not >>> want to use source blocks to

Re: source block evaluation in #+DATE line

2022-05-11 Thread Timothy
Hi Andreas, > how can I have a source block result in a #+Date line? Short version: you can’t as `#+date' is not a [parsed keyword]. Individual export backends do limited processing, and IIRC you should be able to use a macro. All the best, Timothy [parsed keyword]

Re: source block evaluation in #+DATE line

2022-05-11 Thread Eric S Fraga
On Wednesday, 11 May 2022 at 17:50, Eric S Fraga wrote: > ⚠️ Caution: External sender > > > On Wednesday, 11 May 2022 at 05:15, Andreas Leha wrote: >> Thanks for the comments. And sorry for the misleading example. I do not >> want to use source blocks to insert a date. In fact I want to include

Re: source block evaluation in #+DATE line

2022-05-11 Thread Eric S Fraga
On Wednesday, 11 May 2022 at 05:15, Andreas Leha wrote: > Thanks for the comments. And sorry for the misleading example. I do not > want to use source blocks to insert a date. In fact I want to include > the current git commit hash on the title slide. I do this by: --8<---cut here-

Re: source block evaluation in #+DATE line

2022-05-10 Thread Andreas Leha
Hi Kaushal and Jeremie, Thanks for the comments. And sorry for the misleading example. I do not want to use source blocks to insert a date. In fact I want to include the current git commit hash on the title slide. So, something like this: src_sh[:exports results :results output wrap replace]{

Re: source block evaluation in #+DATE line

2022-05-10 Thread Kaushal Modi
Also check out the {{{time}}} macro if you want complete control on the formatting of the date string. Example Org snippet: = #+date: {{{time(%Y-%m-%d)}}} #+options: toc:nil author:nil See the ~{{{time}}}~ macro in [[info:org#Macro Replacement][org#Macro Replacement]]. The format passed to

Re: source block evaluation in #+DATE line

2022-05-10 Thread Jeremie Juste
Hello Andreas, On Tuesday, 10 May 2022 at 13:50, Andreas Leha wrote: > Hi all, > > how can I have a source block result in a #+Date line? > > I am creating a beamer presentation. While the code works and the > results get exported nicely at any other position, in the #+Date line > only the code

source block evaluation in #+DATE line

2022-05-10 Thread Andreas Leha
Hi all, how can I have a source block result in a #+Date line? I am creating a beamer presentation. While the code works and the results get exported nicely at any other position, in the #+Date line only the code is exported. Here is the MWE: - #+TITLE: MWE #+AUTHOR