From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: how to get version information on title slide with org beamer Date: Sat, 26 Aug 2017 23:54:09 +0000 Message-ID: References: <87k21qxlco.fsf@t3610> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlkuA-0001pv-5r for emacs-orgmode@gnu.org; Sat, 26 Aug 2017 19:54:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlku7-00075A-3t for emacs-orgmode@gnu.org; Sat, 26 Aug 2017 19:54:18 -0400 Received: from iport-acv1-out.ucsd.edu ([132.239.0.176]:2907) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1dlku6-000746-JA for emacs-orgmode@gnu.org; Sat, 26 Aug 2017 19:54:15 -0400 In-Reply-To: <87k21qxlco.fsf@t3610> Content-Language: en-US Content-ID: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Eric S Fraga Cc: "emacs-orgmode@gnu.org" > On Aug 26, 2017, at 10:57 AM, Eric S Fraga wrote: >=20 > Hello all, >=20 > 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. >=20 > I have tried >=20 > #+date: \copyright {{{time(%Y)}}}, version src_shell{hg id --num} >=20 > for instance but babel blocks are not executed for these > lines. Putting this text in a macro doesn't help either. >=20 > Any suggestions? >=20 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*)=20 #+END_SRC src_shell[:post mydateline() :results raw]{date}=20 * intro et cetera --8<---------------cut here---------------end--------------->8--- Chuck