瀏覽代碼

org-export: Output "\date{}" in LaTeX export when :with-date is nil

* contrib/lisp/org-e-latex.el (org-e-latex-template):
  output "\date{}" instead of nothing when :with-date is nil

TINYCHANGE
Alan Schmitt 12 年之前
父節點
當前提交
292f70ee7f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      contrib/lisp/org-e-latex.el

+ 1 - 1
contrib/lisp/org-e-latex.el

@@ -1026,7 +1026,7 @@ holding export options."
 	      (format "\\author{%s\\thanks{%s}}\n" author email))
 	     ((or author email) (format "\\author{%s}\n" (or author email)))))
      ;; Date.
-     (when (plist-get info :with-date)
+     (if (not (plist-get info :with-date)) "\\date{}\n"
        (let ((date (org-export-data (plist-get info :date) info)))
 	 (and date (format "\\date{%s}\n" date))))
      ;; Title