From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 qNCjAWvS5WIpMwAAbAwnHQ (envelope-from ) for ; Sun, 31 Jul 2022 02:52:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2Gi5AGvS5WLZxgAAG6o9tA (envelope-from ) for ; Sun, 31 Jul 2022 02:52:59 +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 AFD381094F for ; Sun, 31 Jul 2022 02:52:57 +0200 (CEST) Received: from localhost ([::1]:58260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHxCS-0001LE-L0 for larch@yhetil.org; Sat, 30 Jul 2022 20:52:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHxBy-0001Kq-Gq for emacs-orgmode@gnu.org; Sat, 30 Jul 2022 20:52:26 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:56319) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHxBx-0004k1-3b for emacs-orgmode@gnu.org; Sat, 30 Jul 2022 20:52:26 -0400 Received: by mail-pj1-x102b.google.com with SMTP id b10so7670765pjq.5 for ; Sat, 30 Jul 2022 17:52:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=qZPc/0GM/OEcwn71To4HsUNE14RwsTO/o0PDDSBRdaA=; b=BnrAp2trI9I//MvFgPrhse/yd8OuYrUugcuo191gBL5zrfAqnUVT0lAX0zZFOM1eUI ujiWHUPexT8GYhEx/NdHR+Z7pJV12JNZ7ATzTnxPc9nY4ABcJYMQJxeERw2l+xD1zjGS 9r7MQXecurONF0mvArVLWhF46uzWGKnVHQKKYjZJg1BkPt/a/cW38N5GmEKcQV9S4UiG gsVx0mqTc0XtTrERexfsf+emn3oj7EENp1wD8/JgYtUdkweSWwlEgwiUPmBZMPNr8ssO PdjdCKq/pt+mCGxTbyq9PGNnebjr6MZRmOJmzzZsvLA6K1R9hwlZD6va/sUDAqB4eKkk U8Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=qZPc/0GM/OEcwn71To4HsUNE14RwsTO/o0PDDSBRdaA=; b=VxhlUE/iCyLJPqN2gAvBPyb/gH5K7Mt+C1rp0Yc4bvhPTClXnL63I9f7+qM5KNrKeG V9jbRBpmRQlyRceLzwsa/tGSEr1m0qoaE7ERn1JPaDlYU5QEds6Ab2cvMVv5bbcQ/g6P UXznYujtlZuOtlnT7CDYS6vEX301cy9hwtXzaVBtz/3h4gtwGNe8DaXe2p2rochr88GL B6NDorfU56Mx7qhE6MiEOyV7w0qmJfK29wRPEOk+7e96A/5rLP79zo8/Ea296woBH8i6 M6ShM2mSfFwBq0njxArf0zsRahMPDmHHBPACmf4qxq2LFULYEyvnMAcdXeDBQRZTHn7k HflA== X-Gm-Message-State: ACgBeo2Ojt2u23In8ooWTzqZU0vh0ltGFMP0lTvvT3v98IXS7nZoIO/+ +Idj+FWtisk5vGCDY72DOe0= X-Google-Smtp-Source: AA6agR7CI+hVxVDeIkTDKG5OGX0kjuJAtvH0Rtc6tagw4qoIiricuyDCSDgKgnI9S1YOLaKHy9CFKQ== X-Received: by 2002:a17:902:8644:b0:16b:ea77:a6cb with SMTP id y4-20020a170902864400b0016bea77a6cbmr10336048plt.59.1659228743597; Sat, 30 Jul 2022 17:52:23 -0700 (PDT) Received: from localhost ([2409:8a70:217:4f80:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id x29-20020aa7957d000000b0052d1c615958sm1884141pfq.53.2022.07.30.17.52.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jul 2022 17:52:22 -0700 (PDT) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH]: ox-latex: omit empty date In-Reply-To: References: Date: Sun, 31 Jul 2022 08:53:25 +0800 Message-ID: <87wnbuje62.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102b.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=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=1659228777; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qZPc/0GM/OEcwn71To4HsUNE14RwsTO/o0PDDSBRdaA=; b=qTevKukZc/JjXqW1Rj/5h3EQtDm5Qr/+6lGNqt33bQ/ykPNMtixgPc19qqL5qKy2rp+V5Q 0htNnQ6VCsHAtkWhWxhbDspx/xqqFbvpAyaD4GrG/RIz2A3noGB5jiI0NxjJQ3ysg/ERc4 pQCljq72G79PQxe+3f+4ZsD5KtNhHkj9V4X9Hr2ohNTjzKVcGDRy8TAktGUVIG6ZPpllIP HWfnfB2SMDdrfvgD7qq/594S7uEN4QIZIb0XHLjZfsVjdeb9ZWs+bnbo0Cj7ka6FpRNmRv lile/zF93a+ouwjrAHtuIHV1WUGiM/y/mc9J+ravjNmGB3Qw0PKKGI4LO3RVKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659228777; a=rsa-sha256; cv=none; b=Tc+SsdjhbYIRziKTw735WNn1K0n2xHIS3gUoiOAtN85I5VB/8s9Vn5Jy9xSqGooCrYZOK6 Z2XivqPSoqaRF2n6zsISdBVd5A5HcGC6Qu6fixchxDsGix1KvnO0d6SZWy8FtdXw6GXXfO 4ZSgonaHMshlA78KTQ2Q/dOFEcuSwr7myAzYNEImZhFwvwEa12ZZ4KKy4MSoAp/PWb/kWt ptoAeN3gOQ9Ve+asKUovb06znPRkxe2fqXdyYPuvVJPVFcme9yx08/PUHUTqET4kg+ql/f x8ooKrDNRtXLQ9MDpKLwbgX4WtopPOQbZGOUCRHx73mm6P7XHdWIdOdhOvge5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=BnrAp2tr; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.42 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=BnrAp2tr; dmarc=pass (policy=none) header.from=gmail.com; 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: AFD381094F X-Spam-Score: -3.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: tKKJvqDmQLPF 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? Best, Ihor