On 29/07/2022 19:49, emacs--- via General discussions about Org-mode. wrote:

In the attachment you can find a patch which omits an empty \date{} line in
a latex document when the option to include the date is set to nil or when
no date is provided. This empty date line can cause problems is certain
use cases.

      (let ((date (and (plist-get info :with-date) (org-export-get-date info))))
-       (format "\\date{%s}\n" (org-export-data date info)))
+       (cond date

I would consider (plist-get info :with-date) instead of date here to allow to suppress date in the title by

#+options: title:t date:t
#+date:

With such approach to avoid \date{} in the latex file date:nil can be used in the options line.

+             (format "\\date{%s}\n" (org-export-data date info))))



Reply via email to