From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wCZjM8no5WKaGAEAbAwnHQ (envelope-from ) for ; Sun, 31 Jul 2022 04:28:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sExrM8no5WK1cgAA9RJhRA (envelope-from ) for ; Sun, 31 Jul 2022 04:28:25 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 774FF11E1C for ; Sun, 31 Jul 2022 04:28:25 +0200 (CEST) Received: from localhost ([::1]:33650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHygq-0002iN-Ki for larch@yhetil.org; Sat, 30 Jul 2022 22:28:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHygK-0002fk-PY for emacs-orgmode@gnu.org; Sat, 30 Jul 2022 22:27:52 -0400 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:42577) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHygJ-0003Ia-6E for emacs-orgmode@gnu.org; Sat, 30 Jul 2022 22:27:52 -0400 Received: by mail-lf1-x12c.google.com with SMTP id m22so668458lfl.9 for ; Sat, 30 Jul 2022 19:27:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=NF8Y55NoqB8NRjF+zACe0UTNyYIusUC0s+f+HyphYnE=; b=b72HCIUoo5u5Ow+tVga3dtCSQG164nDgEqQz83JtggJ7pK6s7DeqTZOCAhgA6O+HFo xqbMUNCAXAu/Y6sTbh0ng+1DgvVTfR4rgesLT3nYu4K1xH220QdVhJFM5ZM5COrAlESc KA4L2OwQmMEkIio/Y6NUwzRja44sMvthKsiMcNoT0eglBAsaPDVQgXGlbNJN77X2dqVR 9pl1rrj1GbxO/iWollEroaqlnW31kJ2mg+R938mPRK8cm79G8uHBoh4jHUHlDpwLx7fJ R2Qs6Z2S7sYllG2cdqKsvdp+ntYi5zwvDUDvbUqQC776arADyaHWYyUMEJVwpbVA0sG6 3pBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=NF8Y55NoqB8NRjF+zACe0UTNyYIusUC0s+f+HyphYnE=; b=LD+dUYr+AKbDGBp5ZhtgXvJSVnA0ZBQA8/xLL6ZdO4CrQRo76gL+JuFxYPAlE2pT8G E19i9ALKU2Me8u7DCfAN3ftn1ty0sDzgoCiDPSHdzWtBQBw/LLI1A+UTfa9AtkiDdj/+ DpUBya5VJjioQIm0aT6TmS7FxkeNCPg6If0YCk59i24mK5z0QORJUXfw5GX35t4n9nRd g5H3v0Rv6As4Sky7TaCafabcPz4A0i90GOfP8HR3COePg9s01oj83TPpkKP+o97iPTz5 0ZInSsiTzvnHF7t7VbARH+NKdr7G/MYB7IdSrJZL/D10UNT3D4G8LCWf1L2zflagqcjc r6dA== X-Gm-Message-State: AJIora+j312jsKNbkiD9wZ9b03ZAcBbYp12oZIERhvJJERGwcAdZJVL3 CO/vXT4Xr8LpjbFqFLUZkWH7r0py7rc= X-Google-Smtp-Source: AGRyM1tpQXNyjQ+sxXKivAEKI6aRX2F6ts2XWWAM+aigYVh4Ef6uQJCtn7pOJ1GWPEheuknGQNf29g== X-Received: by 2002:a05:6512:1191:b0:48a:afc8:2d39 with SMTP id g17-20020a056512119100b0048aafc82d39mr3943835lfr.612.1659234468335; Sat, 30 Jul 2022 19:27:48 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id y16-20020a196410000000b0048aa64cfef6sm1152274lfb.152.2022.07.30.19.27.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Jul 2022 19:27:47 -0700 (PDT) Message-ID: <95786e25-53c4-93dd-b77f-0e64fc793b83@gmail.com> Date: Sun, 31 Jul 2022 09:27:46 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH]: ox-latex: omit empty date Content-Language: en-US To: emacs-orgmode@gnu.org Cc: emacs@vergauwen.me References: <87wnbuje62.fsf@localhost> From: Max Nikulin In-Reply-To: <87wnbuje62.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=manikulin@gmail.com; helo=mail-lf1-x12c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659234505; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=NF8Y55NoqB8NRjF+zACe0UTNyYIusUC0s+f+HyphYnE=; b=LbL9HkJwr4yzuEfFmMf17CWpaBzheNlqtqWPQ5ofDxIjZ3j7bsEnsSkxZ0jjns7KWP337k q3xbGFV7UhLcRFnPnDeowPD/GY3Oj6xIReHhLvDy4IJhXpMoHLwpoaOroFYD0hqgsKPPNw FZOlM8laO2gnckCCTy9hNNGl2LHWZGzOnw8Q9TZOanomYeq83LWext6DML4gmi8Ve49Ih5 GXJXtdNinDCLCyaQrAVIBAPM3MAO2iPo7RBTVtL8xHcg1CUo6zrqULBwV0BmYH50Gaje5W B7zI1veSak9oLOzBOvvAtFhdDd/iPKJqhMeh5BtEzfuaa7NrddDM3m8aifY1tA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659234505; a=rsa-sha256; cv=none; b=iAsYhzEMhY53c4qczndJbdMWUGx4nvumnWvFQCFKArOXzUuzlKD4YrEzD3k1QwpQmYyn1F sOcTit96xCKLLsHODJZO6mI7JMeKjS7ks8Jt23J8IwMmGDF8LPtv0waRvmPFZy6rGgniSQ 4Rxg21jdod4x+XGuv33SEId8a6rbjAg9LFFuKHr7Rnj/5+weh3AgjB/fVTZo2/hgbnLn7p ay7jfWoVk3/1Z/sfK5euo2Kk8hlZXVZlE5iyYictM3Rqb+WIu4O7qtzZ6Op271r+rEP2J+ polBd8nyS3b/VN1W4sWwsx0/YwEaRaTEnyEeQsAPTFSdMkm+tbG2S/1lde0v4w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=b72HCIUo; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.78 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=b72HCIUo; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 774FF11E1C X-Spam-Score: 7.78 X-Migadu-Scanner: scn1.migadu.com X-TUID: Ei/tW5RtDHw+ 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