From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gDWvLKNHdWfACwAAe85BDQ:P1 (envelope-from ) for ; Wed, 01 Jan 2025 13:48:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gDWvLKNHdWfACwAAe85BDQ (envelope-from ) for ; Wed, 01 Jan 2025 14:48:19 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SxopMnNK; 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=1735739299; 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=Ca8Efighf7OUnXkJEubHQib9463/AWchUWEv33Sc0Wg=; b=ZPT6xsQ/sVi4QEKfgfskiKzHE6p3ljR6H/k7IGdqydZcz8V8xSnFyWtQpiyQP8d/yde627 bd65GpXq6fR7JQWjSfjo6w0DhYZ07LimmS0w+NIVZ4TSSJYgHK+T2Z0c8DpCurfWhsdjJm yF58Zr7BPFUxIjit9T3/CbhJwTdiPpRmUZ/O7MkKLnMKcRS20atVGPgTo/EjG8BnZHuunO 8b/d5xVOUkZb7Gfa8XdNKozVdUj7n4xVTpAgEeVdh6Lwoy41k0EZolM3EAeF604GYKo+jt Fi7qggmTuEt2ASbRWKfdeKIoML+3Uz3Vi4676GIP7Sqt6qVBFyQpj5s+46UYww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SxopMnNK; 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=1735739299; a=rsa-sha256; cv=none; b=YFfaEPkxxF4XX6BlZCAjwfN7w7rWbLeYuT7387ud+8/I2yWlCabv87ol82Uo3nFL+hCd+k e2im2b/lVhd7KiBWcfByjIMeeVlZ4GCVgRmiu3uwMSn7Ii5ot3xOmxDtT+hbSH+94kt5oY kOyuovea59IduwRhAxWIHnYbDObSPRP/tsbDYLrhncAFp8wXHoBDCdi4E2CxLTQCWyxBJk 21/pIuKYhKdZ1ITAk4h4J+uxYDg2Az2f6DyPGFwKWIPz27opIjSyVK+UMhQA74Kis6IxOd 0svJHjf1JIx66/cPVLthTPQsugrRbGFFLNN7iMxbKBRRN4Qn7hK99yKO+vpcNQ== 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 47CA8973FA for ; Wed, 01 Jan 2025 14:48:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSz4U-0000VK-Vs; Wed, 01 Jan 2025 08:47:39 -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 1tSz4N-0000Ug-ID for emacs-orgmode@gnu.org; Wed, 01 Jan 2025 08:47:33 -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 1tSz4L-0001LK-9L for emacs-orgmode@gnu.org; Wed, 01 Jan 2025 08:47:30 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 614BF240101 for ; Wed, 1 Jan 2025 14:47:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1735739245; bh=gZ7wFUaN4Pea5WlMjy84GoQnM9UYlaFjKOyiel9H6II=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=SxopMnNKb9RrqUdF0lTbq+Ml0wiBnq+TgjgSnlK8Zk3XBbRWTCKMSSXa1qeTY0mSA jJqu3IqpxphveSofJknYtT9cD3VQ9iSdRFLMxBh6iW0HnoPJ9Jo8ZXG2Sa8kge8/NI YWeOE5t0I1eO7KBRbFYbVCM1jyp0G9+VxRDikKS2mVCz5xPHRnI4NyRgM8dQSdtbe0 TTTxL90H1zwRCI+4O8BXcDisvG/uKwTppgUxl2eoEyVAxef6WRqBLffKV5L76wlg/O 2xUpvhw6JS0SSNb4j/a6B9DLrprfzjf47rbSs8liZK7WP3HBNSsCWEt1AB4PuKUtgt eYLviJWZAUSRA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YNWNr6hxHz9rxF; Wed, 1 Jan 2025 14:47:24 +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> Date: Wed, 01 Jan 2025 13:48:45 +0000 Message-ID: <87ikqyfxvm.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Spam-Score: -8.78 X-Spam-Score: -8.78 X-Migadu-Queue-Id: 47CA8973FA X-Migadu-Scanner: mx10.migadu.com X-TUID: jHsw3F6fwrGW Pedro Andres Aranda Gutierrez writes: > Attached is a patch that fixes adding an unnumbered section to the TOC wi= th > test cases. You will need to add the Title you want to appear in the ToC = in > :ALT_TITLE: I'm looking at a new property to copy the section title. > Something like > :ALT_TITLE_COPY: t > But I'm open to suggestions. Not sure. If we look into the manual, here is what it says: 13.3 Table of Contents ... Org includes both numbered and unnumbered headlines in the table of contents(1). If you need to exclude an unnumbered headline, along with all its children, set the =E2=80=98UNNUMBERED=E2=80=99 property to =E2=80= =98notoc=E2=80=99 value. ... (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. So, ox-latex is technically not right when it ignores unnumbered headings in TOC. We might consider changing the current defaults to be consistent with the rest of export backends + a defcustom/export option to allow users fall back to historic defaults. --=20 Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at