0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-20 07:56:28 +00:00

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
This commit is contained in:
Alan Schmitt 2012-11-09 19:12:37 +01:00 committed by Nicolas Goaziou
parent c6d709d0ed
commit 292f70ee7f

View file

@ -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