On 31/07/2022 09:38, Ihor Radchenko wrote: >> Max Nikulin writes: >> >>>> 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: >>> >> >> Agree. I did not know about this LaTeX default. >> >> Bob, do you have any ideas? I am inclined to revert the patch. >> > > We may ask the maintainer of ox-latex Daniel Fleischer if a better way to handle \date exists. > > Bob, could you, please, provide more detail concerning your use case and the purpose of the patch? > I was only looking at removing the empty date command string from my tex files.  But I acknowledge the fact that it now generates an unwanted default date in the  latex pdf file when "date:nil" is provided.  In my use case, my template overwrites the date command and a date should be  passed as  \date{day}{month}{year}. My template uses different formats for the date in different locations of the text.  E.g. copyright notice, front cover, preface,... My use case is very niche and be solved by changing my custom latex date  command by renaming it as for example \mydate. Adding extra options like with_date:nil seems overkill for this small issue.  A second option would be is to analyze the data format in the org file. If for example the date is specified as  #+date: {day}{something} and the regex \{.*\}  matches, then the date can be used as and we use               (format "\\date%s\n" (org-export-data date info)))) instead of               (format "\\date{%s}\n" (org-export-data date info)))) This is non breaking and would not require any extra options to be passed on to the exporter.  In this case, the date can also be suppressed by using  #+date: {} Kind regards, Bob