emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Cc: emacs@vergauwen.me
Subject: Re: [PATCH]: ox-latex: omit empty date
Date: Sun, 31 Jul 2022 09:27:46 +0700	[thread overview]
Message-ID: <95786e25-53c4-93dd-b77f-0e64fc793b83@gmail.com> (raw)
In-Reply-To: <87wnbuje62.fsf@localhost>

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	other threads:[~2022-07-31  2:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-29 12:49 [PATCH]: ox-latex: omit empty date emacs--- via General discussions about Org-mode.
2022-07-29 13:31 ` Ihor Radchenko
     [not found] ` <87sfmkkptc.fsf@localhost-N898uXC--3-2>
2022-07-29 18:49   ` emacs--- via General discussions about Org-mode.
2022-07-30  5:49     ` Ihor Radchenko
2022-07-30 16:13 ` Max Nikulin
2022-07-31  0:53   ` Ihor Radchenko
2022-07-31  2:27     ` Max Nikulin [this message]
2022-07-31  2:38       ` Ihor Radchenko
2022-07-31  7:14         ` Max Nikulin
     [not found]         ` <eed45238-7cad-1752-9e98-688bd0ead08a@gmail.com-N8I60z3----2>
2022-08-01 10:09           ` emacs--- via General discussions about Org-mode.
2022-08-01 10:28             ` Daniel Fleischer
2022-08-01 10:55               ` emacs--- via General discussions about Org-mode.
2022-08-01 16:47                 ` Max Nikulin
2022-07-31 15:25 ` Daniel Fleischer
2022-07-31 15:40   ` Daniel Fleischer
2022-08-01  1:07     ` Ihor Radchenko
2022-08-05 12:42       ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=95786e25-53c4-93dd-b77f-0e64fc793b83@gmail.com \
    --to=manikulin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=emacs@vergauwen.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).