From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Gidden Subject: [PATCH] Adding a BEAMER_HEADER_EXTRA tag, allows short titles, etc. Date: Mon, 9 Mar 2015 16:56:36 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a1133244edd998e0510e21c9a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV5fY-0001Cd-Fr for emacs-orgmode@gnu.org; Mon, 09 Mar 2015 17:57:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YV5fX-0002CP-35 for emacs-orgmode@gnu.org; Mon, 09 Mar 2015 17:57:00 -0400 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]:41060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV5fW-0002CD-O7 for emacs-orgmode@gnu.org; Mon, 09 Mar 2015 17:56:59 -0400 Received: by pablj1 with SMTP id lj1so69579528pab.8 for ; Mon, 09 Mar 2015 14:56:56 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --001a1133244edd998e0510e21c9a Content-Type: multipart/alternative; boundary=001a1133244edd998b0510e21c98 --001a1133244edd998b0510e21c98 Content-Type: text/plain; charset=UTF-8 Hi folks, I ran into the issue that many others have cited: an inability to add short titles, etc., to org-mode-generated Beamer presentations [1, 2, 3]. This patch allows such capability through a BEAMER_HEADER_EXTRA tag, which is placed after title, author, etc., but before `\begin{document}`. Short titles, for example, can now be added via ``` #+BEAMER_HEADER_EXTRA: \title[A Short Title]{ \inserttitle } ``` Something like this appears to have been in the original org-beamer.el, but was not present in the current master HEAD ox-beamer.el. If the community/BD deems this to be worthy, I'd be happy to clean it up as needed. Cheers, Matt [1] http://comments.gmane.org/gmane.emacs.orgmode/57450 [2] https://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg00176.html [3] http://stackoverflow.com/questions/26760125/org-mode-beamer-how-to-create-a-short-title-author-date -- Matthew Gidden Ph.D. Candidate, Nuclear Engineering The University of Wisconsin -- Madison Ph. 225.892.3192 --001a1133244edd998b0510e21c98 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi folks,

I ran into the issue that man= y others have cited: an inability to add short titles, etc., to org-mode-ge= nerated Beamer presentations [1, 2, 3]. This patch allows such capability t= hrough a BEAMER_HEADER_EXTRA tag, which is placed after title, author, etc.= , but before `\begin{document}`.=C2=A0 Short titles, for example, can now b= e added via

```
#+BEAMER_HEADER_EXTRA: \= title[A Short Title]{ \inserttitle }
```

=
Something like this appears to have been in the original org-beamer.el= , but was not present in the current master HEAD ox-beamer.el.=C2=A0If the = community/BD deems this to be worthy, I'd be happy to clean it up as ne= eded.

Cheers,
Matt

<= div>[1] htt= p://comments.gmane.org/gmane.emacs.orgmode/57450
[3] http://stackoverflow.co= m/questions/26760125/org-mode-beamer-how-to-create-a-short-title-author-dat= e=C2=A0

--
Matthew Gidden
Ph.D. Candidate, Nuclear Engineer= ing
The University of Wisconsin -- Madison
Ph. 225.892.3192
--001a1133244edd998b0510e21c98-- --001a1133244edd998e0510e21c9a Content-Type: text/x-patch; charset=US-ASCII; name="0001-adds-a-BEAMER_HEADER_EXTRA-tag-that-can-be-used-to-i.patch" Content-Disposition: attachment; filename="0001-adds-a-BEAMER_HEADER_EXTRA-tag-that-can-be-used-to-i.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i72drp7m0 RnJvbSBlNjY2ZmMwNjUxMmRhZDg2NmExMGRkNzYzYzNkNDIxMTdkZmZmMzFmIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBNYXR0aGV3IEdpZGRlbiA8bWF0dGhldy5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ikpKQogCiAKLS0gCjEuOS4xCgo= --001a1133244edd998e0510e21c9a--