emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH]: ox-latex: omit empty date


From: Max Nikulin
Subject: Re: [PATCH]: ox-latex: omit empty date
Date: Sun, 31 Jul 2022 09:27:46 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

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



reply via email to

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