From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4IC0OpjIdme+YAAAe85BDQ:P1 (envelope-from ) for ; Thu, 02 Jan 2025 17:10:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 4IC0OpjIdme+YAAAe85BDQ (envelope-from ) for ; Thu, 02 Jan 2025 18:10:49 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bvH62+fW; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735837848; 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=lCSDd8XTAMkP8quayUNfpP7aAclfdi9UPI7z1ovrqlU=; b=KKe4ZZ2vc7c+3C384dSxUKqNlhqRS7vK7BvrMHW03frKyP5/W6nqTSSQNqNe6lX3E6Q/k7 EYEKHDbZiR54YX5Ru5uwvNL0qv6f7zMpCewjFXt9iNdqiVqjfO5iMJgCzY7lbuJkKO78Qj QrwI4cQ/iZPXUqqGEyU/g15WaJUmoxv80Waz6sO7268m7MKtooqfYwQ1QZc7XwR/cYE8Mp 0if5g0Hi78j4ri8Z16eZ+CkZFXb9D+ncJyAuhJ7HGylsxmDMQWjNVADCBPHSAqLLaWK20H XsD+mBvUx3K1OC9FB+TY2Gui/vToZKClMR4bWDkkNm5Zb+7gOSgf/rD01JbUBw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bvH62+fW; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735837848; a=rsa-sha256; cv=none; b=FlXgfMzyKWBGtGgdNaz40Q2mnSosFPs7M+4vI0wx04uSZL/ol6Nl99sxPViswUFWmsYK7B e5BwBZ/sMpWcbJL0NSlFp7WmEQNupB+YAxAPlpZm+JpMEsBLl2xx+Hj3Il7JzgSJlItJyP sMopyF6vOvlT+sLspjtXy3VJ+WIBpJWOD6ucNKusTWcRWK5Mf4zW1b8iqZs4xP1EtqD/qd BOy1/ee8s9fqEDXkW7WrZtUkgUKJuhATWiYPeq+U/iBWUNzDobjRvQ/KGiF16ZYYJFp1Rw GHMF8+w9KRnJRGMSLDh90WkU4RaFfF4cUfggAyTNQ5teeHeIFGwEzapkm2H1DQ== 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 D89A17C23E for ; Thu, 02 Jan 2025 18:10:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTOhp-0007o5-Bo; Thu, 02 Jan 2025 12:09:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTOhm-0007nr-3L for emacs-orgmode@gnu.org; Thu, 02 Jan 2025 12:09:54 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTOhj-0003Xx-JX for emacs-orgmode@gnu.org; Thu, 02 Jan 2025 12:09:53 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 411E9240101 for ; Thu, 2 Jan 2025 18:09:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1735837784; bh=AJuz1fqVRUqCQEv4ETSiJvKZpNNts/PSHcNub17FowU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=bvH62+fWFv+mVtph3OT9Rl4yP5TeJZvwzgUCBCZBMeVtFMF3ckZOf9fZvCQsHwvZa wd2pXIzJrXEXxb/QwXhY/Fci3c0brOEuWj7+nkfgruBa0VZbRc6nIQ3o+WXiKfAnJQ yXHn2e5j0jbp2VF/qOo7tIsXO5D87tpB6FSQAvUgou+gRQSNs368ErLheJnrACIkkw +XpsojZhLI5dQTIruWyCupjGtskcjqc4LHpT5hiqxxPA87TdnuA6+ppK/QXzy44QiO T7mrMDAn6Da1xl5eUV0C4Zg5pc/v7yHX/mpc1J968M5OVSzHc+ViLSVpw5CqNk0yUH boUD020UFWIMA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YPCqq4Qw7z9rxN; Thu, 2 Jan 2025 18:09:43 +0100 (CET) From: Ihor Radchenko To: Pedro Andres Aranda Gutierrez Cc: Org Mode List Subject: Re: [PATCH]: ox-latex.eel: handle unnumbered sections in TOC correctly In-Reply-To: References: <495AE5B0-0551-40EC-B501-B681E479D261@gmail.com> <87wmfl3ttn.fsf@localhost> <87r05t3szf.fsf@localhost> <87v7v12juz.fsf@localhost> <87ikqyfxvm.fsf@localhost> Date: Thu, 02 Jan 2025 17:12:02 +0000 Message-ID: <871pxlrvh9.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: D89A17C23E X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -2.39 X-Spam-Score: -2.39 X-TUID: /nxfvOkLxkup Pedro Andres Aranda Gutierrez writes: >> (1) At the moment, some export backends do not obey this >> specification. For example, LaTeX export excludes every unnumbered >> headline from the table of contents. >> > > But this happens because of the way LaTeX works... Sure. But I thought that your patch is working around the LaTeX defaults by adding \addcontentsline{toc}... > So, ox-latex is technically not right when it ignores unnumbered >> headings in TOC. >> > > The basis is there... we might need to rewrite (org-latex-headings) a lot - > I fear. Doesn't your patch have everything needed to add unnumbered headings to TOC? AFAIU, all we need ti simply adding \addcontentsline{toc}... not just when there is ALT_TITLE attribute, but also when UNNUMBERED is t (but not "notoc"). It is just that in the latter case we use actual title in place of ALT_TITLE. > BTW, since my patch produces correct LaTeX code vs. the current state, > could you please apply it to avoid the error which triggered all this until > we get something better. > The documentation would need to modified slightly to I can. I just feel that the patch is one step away from being fully consistent with other export backends. Unless I miss something. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at