summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2012-11-01 07:09:29 (GMT)
committer Nicolas Goaziou <n.goaziou@gmail.com>2012-11-01 07:09:29 (GMT)
commit869e0fa73d074459a75ed6072899572c045f7930 (patch)
treee39ac3e8817cd4e4372b9660dad2aa87d66769a4
parent32c34560209bd03e955b44a4b9c1d5feccdaebf9 (diff)
downloadorg-mode-869e0fa73d074459a75ed6072899572c045f7930.zip
org-mode-869e0fa73d074459a75ed6072899572c045f7930.tar.gz
org-e-latex: No \author{} command with author:nil option
* contrib/lisp/org-e-latex.el (org-e-latex-template): No \author{} command with author:nil option.
-rw-r--r--contrib/lisp/org-e-latex.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/lisp/org-e-latex.el b/contrib/lisp/org-e-latex.el
index 61f66fa..6922cda 100644
--- a/contrib/lisp/org-e-latex.el
+++ b/contrib/lisp/org-e-latex.el
@@ -1024,8 +1024,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)))))
;; Date.
(let ((date (org-export-data (plist-get info :date) info)))
(and date (format "\\date{%s}\n" date)))