On 31/07/2022 07:53, Ihor Radchenko wrote:
Max Nikulin writes:
(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))))
I am sorry, but I do not understand.
I tried
#+options: title:t date:nil
No \date is exported.
#+options: title:t date:t
\date is exported
#+options: title:t date:t
#+date:
No date is export.
All the above makes sense. Do I miss something?
To be precise, \date is not exported to LaTeX file, but current date
appears in PDF. That is why I consider the change as a breaking one.
Try to export to PDF the following document.
---- >8 ----
#+options: title:t
# #+options: date:nil
# #+date:
#+title: Title
test
---- 8< ----
PDF file is produced with current date. Before the patch it was possible
to suppress date in PDF file by removing comment for either "#+options:
date:nil" or for "#+date:". With current main branch HEAD some other
workaround is required. I think, it is not what is expected from the
description of the #+options: keyword:
‘date:’
Toggle inclusion of a date into exported file
(‘org-export-with-date’).
info "(org) Export Settings" https://orgmode.org/manual/Export-Settings.html