* export for Beamer with author options
@ 2014-08-21 20:57 Tory S. Anderson
2014-08-21 21:16 ` Aaron Ecay
0 siblings, 1 reply; 10+ messages in thread
From: Tory S. Anderson @ 2014-08-21 20:57 UTC (permalink / raw)
To: orgmode list
My Beamer presentation needs the following:
\author[short-author]{Really \\\\long \\\\author}
Emphasis on the [short-author] parameter. I've been through the manual but I don't see a way to accomplish this sort of thing with export (there are other fields that do something similar, too). Simply adding brackets to my #+AUTHOR: line doesn't seem to work. Am I missing something?
- Tory
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: export for Beamer with author options
2014-08-21 20:57 export for Beamer with author options Tory S. Anderson
@ 2014-08-21 21:16 ` Aaron Ecay
2014-08-21 21:46 ` Tory S. Anderson
0 siblings, 1 reply; 10+ messages in thread
From: Aaron Ecay @ 2014-08-21 21:16 UTC (permalink / raw)
To: Tory S. Anderson, orgmode list
Hi Tory,
It looks like having a short and long author isn’t supported by the
beamer exporter out of the box. Your best bet is probably to add this
line to the top of your org file to turn off the automatic generation
and insertion of \author by the export template:
#+OPTIONS: author:nil
Then, you can cause the appropriate line to be inserted in the export
output with this line (also at the top of the file):
#+LATEX_HEADER: \author[short-author]{Really \\long \\author}
Whatever is on the latex header line will be inserted in the output
verbatim, so you don’t need to (e.g.) add extra escaping to special
characters like backslashes as you would if they were processed by org.
Hope this is useful,
--
Aaron Ecay
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: export for Beamer with author options
2014-08-21 21:16 ` Aaron Ecay
@ 2014-08-21 21:46 ` Tory S. Anderson
2014-08-21 22:17 ` Aaron Ecay
0 siblings, 1 reply; 10+ messages in thread
From: Tory S. Anderson @ 2014-08-21 21:46 UTC (permalink / raw)
To: Aaron Ecay; +Cc: orgmode list
Hey Aaron,
THat's a good idea but it doesn't quite work; looks like #+LATEX_HEADER stuff is put in BEFORE the author nil, so I just end up with \author{} to trump my author. I've tried rearranging things but it doesn't seem to effect it.
- Tory
Aaron Ecay <aaronecay@gmail.com> writes:
> Hi Tory,
>
> It looks like having a short and long author isn’t supported by the
> beamer exporter out of the box. Your best bet is probably to add this
> line to the top of your org file to turn off the automatic generation
> and insertion of \author by the export template:
>
> #+OPTIONS: author:nil
>
> Then, you can cause the appropriate line to be inserted in the export
> output with this line (also at the top of the file):
>
> #+LATEX_HEADER: \author[short-author]{Really \\long \\author}
>
> Whatever is on the latex header line will be inserted in the output
> verbatim, so you don’t need to (e.g.) add extra escaping to special
> characters like backslashes as you would if they were processed by org.
>
> Hope this is useful,
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: export for Beamer with author options
2014-08-21 21:46 ` Tory S. Anderson
@ 2014-08-21 22:17 ` Aaron Ecay
2014-08-22 12:08 ` Nicolas Goaziou
0 siblings, 1 reply; 10+ messages in thread
From: Aaron Ecay @ 2014-08-21 22:17 UTC (permalink / raw)
To: Tory S. Anderson; +Cc: orgmode list
[-- Attachment #1: Type: text/plain, Size: 701 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-ox-beamer.el-Match-latex-backend-in-generation-of-au.patch --]
[-- Type: text/x-diff, Size: 1069 bytes --]
From 8e327b373effb3690cfc0d8fec85b51704d1fb92 Mon Sep 17 00:00:00 2001
From: Aaron Ecay <aaronecay@gmail.com>
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
[-- Attachment #3: Type: text/plain, Size: 16 bytes --]
--
Aaron Ecay
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: export for Beamer with author options
2014-08-21 22:17 ` Aaron Ecay
@ 2014-08-22 12:08 ` Nicolas Goaziou
2014-08-22 13:08 ` Tory S. Anderson
0 siblings, 1 reply; 10+ messages in thread
From: Nicolas Goaziou @ 2014-08-22 12:08 UTC (permalink / raw)
To: Tory S. Anderson; +Cc: orgmode list
Hello,
Aaron Ecay <aaronecay@gmail.com> writes:
> 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.
OK. Please apply. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: export for Beamer with author options
2014-08-22 12:08 ` Nicolas Goaziou
@ 2014-08-22 13:08 ` Tory S. Anderson
2014-08-22 13:37 ` Nicolas Goaziou
0 siblings, 1 reply; 10+ messages in thread
From: Tory S. Anderson @ 2014-08-22 13:08 UTC (permalink / raw)
To: Nicolas Goaziou, orgmode list
I realize you were responding to Aaron on this, but for my own education, how does on "apply"?
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Aaron Ecay <aaronecay@gmail.com> writes:
>
>> 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.
>
> OK. Please apply. Thank you.
>
>
> Regards,
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: export for Beamer with author options
2014-08-22 13:08 ` Tory S. Anderson
@ 2014-08-22 13:37 ` Nicolas Goaziou
2014-08-22 18:56 ` Marcin Borkowski
2014-08-22 19:43 ` Aaron Ecay
0 siblings, 2 replies; 10+ messages in thread
From: Nicolas Goaziou @ 2014-08-22 13:37 UTC (permalink / raw)
To: Tory S. Anderson; +Cc: orgmode list
torys.anderson@gmail.com (Tory S. Anderson) writes:
> I realize you were responding to Aaron on this, but for my own
> education, how does on "apply"?
"Please push your patch on master branch" is more explicit.
Regards,
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: export for Beamer with author options
2014-08-22 13:37 ` Nicolas Goaziou
@ 2014-08-22 18:56 ` Marcin Borkowski
2014-08-22 19:23 ` Marcin Borkowski
2014-08-22 19:43 ` Aaron Ecay
1 sibling, 1 reply; 10+ messages in thread
From: Marcin Borkowski @ 2014-08-22 18:56 UTC (permalink / raw)
To: emacs-orgmode
Dnia 2014-08-22, o godz. 15:37:28
Nicolas Goaziou <mail@nicolasgoaziou.fr> napisał(a):
> torys.anderson@gmail.com (Tory S. Anderson) writes:
>
> > I realize you were responding to Aaron on this, but for my own
> > education, how does on "apply"?
>
> "Please push your patch on master branch" is more explicit.
And before this happens, you might want to try
#+LATEX_HEADER: \author[short-author]{Really \\long \\author}
#+LATEX_HEADER: \newcommand{\author}[2][]{}
> Regards,
With greetings from the Department of Dirty TeX Hacks,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: export for Beamer with author options
2014-08-22 13:37 ` Nicolas Goaziou
2014-08-22 18:56 ` Marcin Borkowski
@ 2014-08-22 19:43 ` Aaron Ecay
1 sibling, 0 replies; 10+ messages in thread
From: Aaron Ecay @ 2014-08-22 19:43 UTC (permalink / raw)
To: Nicolas Goaziou, Tory S. Anderson; +Cc: orgmode list
2014ko abuztuak 22an, Nicolas Goaziou-ek idatzi zuen:
>
> torys.anderson@gmail.com (Tory S. Anderson) writes:
>
>> I realize you were responding to Aaron on this, but for my own
>> education, how does on "apply"?
>
> "Please push your patch on master branch" is more explicit.
Pushed.
Thanks,
--
Aaron Ecay
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-08-22 19:43 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-21 20:57 export for Beamer with author options Tory S. Anderson
2014-08-21 21:16 ` Aaron Ecay
2014-08-21 21:46 ` Tory S. Anderson
2014-08-21 22:17 ` Aaron Ecay
2014-08-22 12:08 ` Nicolas Goaziou
2014-08-22 13:08 ` Tory S. Anderson
2014-08-22 13:37 ` Nicolas Goaziou
2014-08-22 18:56 ` Marcin Borkowski
2014-08-22 19:23 ` Marcin Borkowski
2014-08-22 19:43 ` Aaron Ecay
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).