emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 0599ddfd41: Revert "lisp/ox-latex: Omit empty date"


From: ELPA Syncer
Subject: [elpa] externals/org 0599ddfd41: Revert "lisp/ox-latex: Omit empty date"
Date: Sun, 31 Jul 2022 18:57:43 -0400 (EDT)

branch: externals/org
commit 0599ddfd419c520beff32cb57e0cc511d791d2d5
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>

    Revert "lisp/ox-latex: Omit empty date"
    
    This reverts commit a753d0dd26018a951fe21548ae6b513594b570a8.
    
    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
---
 lisp/ox-latex.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 0654bf52c6..206b1c6d52 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]