From: "Berry, Charles" <ccberry@ucsd.edu>
To: Eric S Fraga <esflists@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: how to get version information on title slide with org beamer
Date: Sat, 26 Aug 2017 23:54:09 +0000 [thread overview]
Message-ID: <E8533609-9505-401C-AE85-E1CC8176C2E5@ucsd.edu> (raw)
In-Reply-To: <87k21qxlco.fsf@t3610>
> On Aug 26, 2017, at 10:57 AM, Eric S Fraga <esflists@gmail.com> 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
next prev parent reply other threads:[~2017-08-26 23:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-26 17:57 how to get version information on title slide with org beamer Eric S Fraga
2017-08-26 23:54 ` Berry, Charles [this message]
2017-08-27 9:13 ` Eric S Fraga
2017-08-27 11:24 ` Eric S Fraga
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E8533609-9505-401C-AE85-E1CC8176C2E5@ucsd.edu \
--to=ccberry@ucsd.edu \
--cc=emacs-orgmode@gnu.org \
--cc=esflists@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.