瀏覽代碼

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.
Nicolas Goaziou 12 年之前
父節點
當前提交
869e0fa73d
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      contrib/lisp/org-e-latex.el

+ 1 - 2
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)))