Skip to content

Commit

Permalink
Revert "lisp/ox-latex: Omit empty date"
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yantar92 committed Jul 31, 2022
1 parent e22b4eb commit 0599ddf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lisp/ox-latex.el
Original file line number Diff line number Diff line change
Expand Up @@ -1980,8 +1980,7 @@ holding export options."
((or author email) (format "\\author{%s}\n" (or author email)))))
;; Date.
(let ((date (and (plist-get info :with-date) (org-export-get-date info))))
(when date
(format "\\date{%s}\n" (org-export-data date info))))
(format "\\date{%s}\n" (org-export-data date info)))
;; Title and subtitle.
(let* ((subtitle (plist-get info :subtitle))
(formatted-subtitle
Expand Down

0 comments on commit 0599ddf

Please sign in to comment.