From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: how to get version information on title slide with org beamer Date: Sun, 27 Aug 2017 12:24:15 +0100 Message-ID: <87tw0tw8ww.fsf@t3610> References: <87k21qxlco.fsf@t3610> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlvfx-0000pb-UI for emacs-orgmode@gnu.org; Sun, 27 Aug 2017 07:24:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlvfu-0001cO-Pp for emacs-orgmode@gnu.org; Sun, 27 Aug 2017 07:24:21 -0400 Received: from mail-wr0-x235.google.com ([2a00:1450:400c:c0c::235]:37738) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dlvfu-0001c6-JV for emacs-orgmode@gnu.org; Sun, 27 Aug 2017 07:24:18 -0400 Received: by mail-wr0-x235.google.com with SMTP id a47so10818341wra.4 for ; Sun, 27 Aug 2017 04:24:18 -0700 (PDT) In-Reply-To: (Charles Berry's message of "Sat, 26 Aug 2017 23:54:09 +0000") 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: "Berry, Charles" Cc: "emacs-orgmode@gnu.org" --=-=-= Content-Type: text/plain For completeness, here is my final code based on Charles's suggestion: #+begin_src org ,* date formatting with version information :ignoreheading: ,#+NAME: mydateline ,#+BEGIN_SRC emacs-lisp (format "#+DATE: \\copyright{} %s\n" *this*) ,#+END_SRC src_shell[:post mydateline() :results raw]{echo -n $(date +%Y) '@@latex:\\ \footnotesize \color{gray}@@' v$(hg id --num)} #+end_src This is for export to beamer (well, LaTeX more generally) and outputs the year with revision information below in light grey (British spelling I'm told ;-)). I should probably move the copyright symbol into the shell script but this works... Thanks again, eric -- Eric S Fraga, ericsfraga@ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWaKr3wAKCRDIkZPY//z2 fffmAJwL2PA9weRxhZMwPce6T0a+Xz1Q4ACdF+DIp4XAT+WYNL2lZ4DTpy5qnSQ= =ZUYw -----END PGP SIGNATURE----- --=-=-=--