From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Gidden Subject: Re: [PATCH] Adding a BEAMER_HEADER_EXTRA tag, allows short titles, etc. Date: Mon, 9 Mar 2015 18:46:47 -0500 Message-ID: References: <87zj7l3gjh.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bacb59cf2dd9d0510e3a661 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV7OA-0000Ed-RN for emacs-orgmode@gnu.org; Mon, 09 Mar 2015 19:47:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YV7O9-0002tA-G3 for emacs-orgmode@gnu.org; Mon, 09 Mar 2015 19:47:10 -0400 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]:35490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV7O9-0002t6-49 for emacs-orgmode@gnu.org; Mon, 09 Mar 2015 19:47:09 -0400 Received: by pabli10 with SMTP id li10so76490023pab.2 for ; Mon, 09 Mar 2015 16:47:08 -0700 (PDT) In-Reply-To: <87zj7l3gjh.fsf@nicolasgoaziou.fr> 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: Matthew Gidden , emacs-orgmode --047d7bacb59cf2dd9d0510e3a661 Content-Type: text/plain; charset=UTF-8 HI Nic, On Mon, Mar 9, 2015 at 6:19 PM, Nicolas Goaziou wrote: > Hello, > > Matthew Gidden writes: > > > 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 } > > ``` > > Thanks for the patch. > > BEAMER_HEADER_EXTRA is not a good name, as LATEX_HEADER_EXTRA means > something entirely different. If it's just about short titles, we could > add a BEAMER_SHORT_TITLE keyword. > > However what is in the "etc." above? In many outerthemes (i.e., the beamer header and footer formatting), the "short" version of title, author, institution, and date are used. While this is the (my) primary use case I can think of, the positioning BEAMER_HEADER_EXTRA serves as final preamble injection point. I just reread your discussion with Sebastien [1] and agree the proposed name is bad. >From what I can tell, the current ox-beamer.el does not support beamer's institution macor or the short version of title, author, institution or date. I can think of two options to get around this: - do not use #+Title, etc., and simply use BEAMER_HEADER or similar - use #+Title plus something like this patch to inject fixes *after* \title As a user, I prefer the latter, because it maximizes the portability of my code (so I can use something like org-reveal [2]). Another option would be to simply move BEAMER_HEADER to inject code where I have implemented BEAMER_HEADER_EXTRA. That would provide the same functionality with a reasonable name. I still need to better format my commit message (I forgot to before submitting), so I can make any other updates that are deemed necessary. Let me know what you (and others) think. Cheers, Matt [1] http://comments.gmane.org/gmane.emacs.orgmode/78582 [2] http://orgmode.org/worg/org-tutorials/non-beamer-presentations.html#sec-6 > > > Regards, > > -- > Nicolas Goaziou > -- Matthew Gidden Ph.D. Candidate, Nuclear Engineering The University of Wisconsin -- Madison Ph. 225.892.3192 --047d7bacb59cf2dd9d0510e3a661 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
HI Nic,



On Mon, Mar 9, 2015 at 6:19 PM, Nicola= s Goaziou <mail@nicolasgoaziou.fr> wrote:
Hello,

Matthew Gidden <gidden@wisc.edu&g= t; writes:

> 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}`.=C2=A0= Short
> titles, for example, can now be added via
>
> ```
> #+BEAMER_HEADER_EXTRA: \title[A Short Title]{ \inserttitle }
> ```

Thanks for the patch.

BEAMER_HEADER_EXTRA is not a good name, as LATEX_HEADER_EXTRA means
something entirely different. If it's just about short titles, we could=
add a BEAMER_SHORT_TITLE keyword.

However what is in the "etc." above?
In many out= erthemes (i.e., the beamer header and footer formatting), the "short&q= uot; version of title, author, institution, and date are used. While this i= s the (my) primary use case I can think of, the positioning <something o= ther than>BEAMER_HEADER_EXTRA serves as final preamble injection point. = I just reread your discussion with Sebastien [1] and agree the proposed nam= e is bad.=C2=A0

From what I can tell, the current = ox-beamer.el does not support beamer's institution macor or the short v= ersion of title, author, institution or date. I can think of two options to= get around this:=C2=A0
  • do not use #+Title, etc., and sim= ply use BEAMER_HEADER or similar=C2=A0
  • use #+Title plus something l= ike this patch to inject fixes *after* \title =C2=A0
As a use= r, I prefer the latter, because it maximizes the portability of my code (so= I can use something like org-reveal [2]).

A= nother option would be to simply move BEAMER_HEADER to inject code where I = have implemented BEAMER_HEADER_EXTRA. That would provide the same functiona= lity with a reasonable name. I still need to better format my commit messag= e (I forgot to before submitting), so I can make any other updates that are= deemed necessary.

Let me know what you (and other= s) think.

Cheers,
Matt



--
Matthew Gidden
Ph.D. C= andidate, Nuclear Engineering
The University of Wisconsin -- MadisonPh. 225.892.3192
--047d7bacb59cf2dd9d0510e3a661--