emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] export for Beamer with author options


From: Aaron Ecay
Subject: Re: [O] export for Beamer with author options
Date: Thu, 21 Aug 2014 18:17:29 -0400
User-agent: Notmuch/0.18.1+51~gbbbdf04 (http://notmuchmail.org) Emacs/24.4.50.2 (x86_64-unknown-linux-gnu)

Hi Tory,

You’re right...I inadvertently tested the proposed solution with the
latex backend, but it turns out there’s 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’s lead.

(It actually seems like there’s an opportunity to factor lots of common
code out of both backends’ template functions, making mismatches like
this less likely in the future.  But that’s a bigger project...)

Sorry for the confusion,
Aaron

>From 8e327b373effb3690cfc0d8fec85b51704d1fb92 Mon Sep 17 00:00:00 2001
From: Aaron Ecay <address@hidden>
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

-- 
Aaron Ecay

reply via email to

[Prev in Thread] Current Thread [Next in Thread]