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: Ihor Radchenko
Subject: Re: [PATCH]: ox-latex: omit empty date
Date: Sun, 31 Jul 2022 08:53:25 +0800

Max Nikulin <manikulin@gmail.com> 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?

Best,
Ihor



reply via email to

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