Hi Ihor,  sorry for not testing my code! My test halted on the main branch with the message: Warning (python): Your `python-shell-interpreter' doesn't seem to support readline, yet `python-shell-completion-native-enable' was t and "python" is not part of the `python-shell-completion-native-disabled-interpreters' list.  Native completions have been disabled locally.  Shell native completion is disabled, using fallback and I was not in the mood to fix this small problem with my python installation. The updated (and still untested) patch is attached to this mail. Kind regards,  Bob  Jul 29, 2022, 15:31 by yantar92@gmail.com: > emacs--- via "General discussions about Org-mode." > writes: > >> From 120e4ca11f021fa2d7e7abf57187c2db71942302 Mon Sep 17 00:00:00 2001 >> From: Bob Vergauwen >> Date: Fri, 29 Jul 2022 14:28:21 +0200 >> Subject: [PATCH] lisp/ox-latex: Omit empty date >> >> * lisp/ox-latex.el: (org-latex-template): When no date is provided or >> the export option date is nil, the empty '\date{}' string is no >> longer included in the exported latex document. >> >> The default behaviour for ox-latex was to include an empty date line as >> '\date{}'. This empty date line can affect more complex latex templates >> when the date is for example set by the template on compilation, or when >> the date command is overwritten entirely. In this new patch, the date >> line is omitted from the exported document. >> > > Thanks! This looks reasonable. > >> (let ((date (and (plist-get info :with-date) (org-export-get-date info)))) >> - (format "\\date{%s}\n" (org-export-data date info))) >> + (cond date >> + (format "\\date{%s}\n" (org-export-data date info)))) >> > > This will give compilation error. Did you mean (when date ...)? > > Best, > Ihor >