[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: |
Sat, 30 Jul 2022 23:13:28 +0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 |
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))))
Re: [PATCH]: ox-latex: omit empty date, Daniel Fleischer, 2022/07/31