From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: export for Beamer with author options Date: Thu, 21 Aug 2014 18:17:29 -0400 Message-ID: <87fvgpqyh2.fsf@gmail.com> References: <87tx554l35.fsf@gmail.com> <87iollr1b2.fsf@gmail.com> <87a96x4itu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKaft-0008Ds-Gn for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 18:17:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKafk-0006QX-FX for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 18:17:41 -0400 Received: from mail-qc0-x235.google.com ([2607:f8b0:400d:c01::235]:38650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKafk-0006QL-AO for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 18:17:32 -0400 Received: by mail-qc0-f181.google.com with SMTP id x13so9941656qcv.40 for ; Thu, 21 Aug 2014 15:17:31 -0700 (PDT) In-Reply-To: <87a96x4itu.fsf@gmail.com> 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: "Tory S. Anderson" Cc: orgmode list --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Tory, You=E2=80=99re right...I inadvertently tested the proposed solution with the latex backend, but it turns out there=E2=80=99s a small difference between = how the latex and beamer backends calculate their \author. I think both backends should behave identically here and that the latex behavior is more correct (i.e. #+options: author:nil suppresses generation of \author entirely), and the attached patch makes beamer follow latex=E2=80=99s lead. (It actually seems like there=E2=80=99s an opportunity to factor lots of co= mmon code out of both backends=E2=80=99 template functions, making mismatches li= ke this less likely in the future. But that=E2=80=99s a bigger project...) Sorry for the confusion, Aaron --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-ox-beamer.el-Match-latex-backend-in-generation-of-au.patch >From 8e327b373effb3690cfc0d8fec85b51704d1fb92 Mon Sep 17 00:00:00 2001 From: Aaron Ecay Date: Thu, 21 Aug 2014 18:09:04 -0400 Subject: [PATCH] ox-beamer.el: Match latex backend in generation of \author. * lisp/ox-beamer.el (org-beamer-template): Match latex backend in generation of \author. --- lisp/ox-beamer.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el index 97763e9..b415481 100644 --- a/lisp/ox-beamer.el +++ b/lisp/ox-beamer.el @@ -846,8 +846,7 @@ holding export options." (org-export-data (plist-get info :email) info)))) (cond ((and author email (not (string= "" email))) (format "\\author{%s\\thanks{%s}}\n" author email)) - (author (format "\\author{%s}\n" author)) - (t "\\author{}\n"))) + ((or author email) (format "\\author{%s}\n" (or author email))))) ;; 6. Date. (let ((date (and (plist-get info :with-date) (org-export-get-date info)))) (format "\\date{%s}\n" (org-export-data date info))) -- 2.0.4 --=-=-= Content-Type: text/plain -- Aaron Ecay --=-=-=--