all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric S Fraga <esflists@gmail.com>
To: "Berry, Charles" <ccberry@ucsd.edu>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: how to get version information on title slide with org beamer
Date: Sun, 27 Aug 2017 12:24:15 +0100	[thread overview]
Message-ID: <87tw0tw8ww.fsf@t3610> (raw)
In-Reply-To: <E8533609-9505-401C-AE85-E1CC8176C2E5@ucsd.edu> (Charles Berry's message of "Sat, 26 Aug 2017 23:54:09 +0000")

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

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@<most social media>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

      parent reply	other threads:[~2017-08-27 11:24 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
2017-08-27  9:13   ` Eric S Fraga
2017-08-27 11:24   ` Eric S Fraga [this message]

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=87tw0tw8ww.fsf@t3610 \
    --to=esflists@gmail.com \
    --cc=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    /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.