[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] how to get version information on title slide with org beamer
From: |
Berry, Charles |
Subject: |
Re: [O] how to get version information on title slide with org beamer |
Date: |
Sat, 26 Aug 2017 23:54:09 +0000 |
> On Aug 26, 2017, at 10:57 AM, Eric S Fraga <address@hidden> wrote:
>
> Hello all,
>
> I know I can use {{{modification-time(...,t)}}} say to get the revision
> control system information about when the repository was last
> modified. However, I would like to have other information (e.g. the
> mercurial id). More importantly, I would like this information to
> appear on my beamer export title slide.
>
> I have tried
>
> #+date: \copyright {{{time(%Y)}}}, version src_shell{hg id --num}
>
> for instance but babel blocks are not executed for these
> lines. Putting this text in a macro doesn't help either.
>
> Any suggestions?
>
Use a :post header to format a date keyword line.
Something like:
--8<---------------cut here---------------start------------->8---
#+NAME: mydateline
#+BEGIN_SRC emacs-lisp
(format "#+DATE: %s\n" *this*)
#+END_SRC
src_shell[:post mydateline() :results raw]{date}
* intro
et cetera
--8<---------------cut here---------------end--------------->8---
Chuck