Skip to content

Commit 0599ddf

Browse files
committed
Revert "lisp/ox-latex: Omit empty date"
This reverts commit a753d0d. Omitting \date in the LaTeX source makes LaTeX print today's date by default, which is not consistent with :with-date export option. See https://list.orgmode.org/m2v8rdguil.fsf@gmail.com/T/#t
1 parent e22b4eb commit 0599ddf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lisp/ox-latex.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,8 +1980,7 @@ holding export options."
19801980
((or author email) (format "\\author{%s}\n" (or author email)))))
19811981
;; Date.
19821982
(let ((date (and (plist-get info :with-date) (org-export-get-date info))))
1983-
(when date
1984-
(format "\\date{%s}\n" (org-export-data date info))))
1983+
(format "\\date{%s}\n" (org-export-data date info)))
19851984
;; Title and subtitle.
19861985
(let* ((subtitle (plist-get info :subtitle))
19871986
(formatted-subtitle

0 commit comments

Comments
 (0)