From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 OMtuM1vxj2eMkgAA62LTzQ:P1 (envelope-from ) for ; Tue, 21 Jan 2025 19:11:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id OMtuM1vxj2eMkgAA62LTzQ (envelope-from ) for ; Tue, 21 Jan 2025 20:11:23 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=V99ZS2ag; 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=1737486683; 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=v0YDmQCV4xASTCrxnBQgHmjTWKMj5a4L/rasp4YG3jE=; b=HdEROubbjfAVrlLKPSfHgk+A/ydKY7gwwkjJpS1pii7aN51Za6n1iOgdb2QsluFvpdy+Tk kqZFtOB5tcArZ/wIDG0yHVv5hi7zSioaiORg9K2vq3BY8GWCpr/4m5OKyUHK5BG/8sgRJ9 TfV1pyLE844FVGtmjphAJbVxXNI9rOKl9IynSk1TYxYSxRosOmYzsMRl2UgsgdrQKY9vJg Tt7UeDKkjYn79fOC3/cKrmDgc9pcAsWzdTOHOZqLmLtWQ7Zw3Fumgxu/cel4DXKMGIDimq zsXRXvQQ3fFaZUx6/1ivVtd5pp4TBi0lmxvDE7saLEfIbfVZh1PdHzyegLUhzA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=V99ZS2ag; 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=1737486683; a=rsa-sha256; cv=none; b=qh3YOWuTqWCwKl0PcFGr/iQE4NGuHYoxKscErrPnCCuSlSchnWctsaeASHh8tAgTa8ZkMe pEemTFmWRxdVxOyPa6n0lgVLH+yqLpgMiULMaBrTHmsyYfYvutE/SFRPd6DoYCwjaKcW2g E/3Jnozu8++txVr4ea7uPkzxx/QoNO50fdmNo02kqmVuzCtfPuzioS6JjmQjUODgDcydb/ s+o9mYQTFQgxjcx/4hlmbWndTJG9a2Ds9OVx+wq8Elch+YTmEzkLFbPEr/eYxYXCSPB9eQ ZfL7b9QxNnyx8CVvJaokAmzeg+anI33FRbk9smperk0WNja8MIzGk97y9CkjeQ== 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 BAE5F86B46 for ; Tue, 21 Jan 2025 20:11:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1taJdq-0001rr-03; Tue, 21 Jan 2025 14:10:27 -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 1taJde-0001rP-7L for emacs-orgmode@gnu.org; Tue, 21 Jan 2025 14:10:15 -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 1taJdb-0000OX-W6 for emacs-orgmode@gnu.org; Tue, 21 Jan 2025 14:10:13 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9EF00240101 for ; Tue, 21 Jan 2025 20:10:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1737486607; bh=btWjPDuLALFoRJDSZHdTlxZRcwIxzxCZm7BCXTLZXGQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=V99ZS2agDkqZYi6QhU49wezA4MpfPSuDtK4XmNNlNLEibxk1hg9vBvsP096lDWstN vbpdE7IKblyqH+HeYPSQ6lRBGD2pagkwv9zH1b6MtmKwIC3aGOpwQyUJmhhQLNmyhz FtC0xBO+5Uo3LITqsd8030xWBDoos2Z0P+ePMD+L8GrlFw4U+o6pK2g20rrsAuAEo8 cTQZ/MFHpPnoA/pOqyAcUQTiK0VuAgTflzO7rpDUlFL8sdUgyMILe0EPBlj8AykQn2 y6R+hCN9mgeg5hXxu/l2EMSc3Iyk1mbVH142SPISVRc9N3JDL70wQ3RAQwmouIQI6i s25l8akNZhilg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Ycxby1WnZz6tx8; Tue, 21 Jan 2025 20:10:06 +0100 (CET) From: Ihor Radchenko To: Pedro Andres Aranda Gutierrez Cc: Org Mode List Subject: Re: PATCH: ox-latex table of contents patch consolidated In-Reply-To: References: Date: Tue, 21 Jan 2025 19:12:16 +0000 Message-ID: <87frlcq8vj.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: -7.99 X-Spam-Score: -7.99 X-Migadu-Queue-Id: BAE5F86B46 X-Migadu-Scanner: mx10.migadu.com X-TUID: /tSEZfW3zpHS Pedro Andres Aranda Gutierrez writes: > I will need a couple of days offline. I'm sending the last consolidated > version of the ToC patch for ox-latex.el Thanks! Looks like you omitted some of the points discussed (your patch changes how opt-title is handled in unnumbered sections with footnotes that are to be included inside TOC. [line: (setq opt-title full-text-no-footnote)] > +*** ox-latex: Table of contents generation has been fixed and augmented > + > +The LaTeX exporter differs from other exporters in that it *does not* > +export unnumbered sections by default. does not include unnumbered sections into TOC, while most other backends do include them. It is also a good idea to explain why (closer to how latex does it) > +A new property =3D:UNNUMBERED: toc=3D has been defined to include > +unnumbered sections in the table of contents. new value of property. Also, it is worth mentioning that UNNUMBERED: toc will keep working for other backends (equivalent to UNNUMBERED: t) > +Additionally, a new custom variable ~org-latex-consistent-toc~ has > +been introduced to enable the inclusion of unnumbered sections in the > +ToC like other exporters. In this case, to exclude a section from the > +table of contents, mark it as =3D:UNNUMBERED: notoc=3D I do not like the variable name here. Let's make up something a bit more comprehensive to people not familiar with all the intricacies. For example, org-latex-toc-include-unnumbered-style (values: 'latex or 'org). > +#+cindex: LaTeX ToC export =C3=A1 la ~org~ "a la" is a bit hard to search from latin keyboard. > +(defconst org-latex-unnumbered-section-re > + "^\\\\\\(chapter\\|\\(sub\\)*section\\)[*]" > + "Regexp to get the unnumbered section unit from the heading. > +Use this to get the unit (chapter, section, subsection, etc.) > +you want to add to the table of contents. > + > +The *first* match will be included in the match group? > (level (org-export-get-relative-level headline info)) > + ;; "LEGACY MODE" > + ;; :unnumbered: toc will add the heading to the ToC > + ;; "BREAKING MODE" > + ;; :unnumbered: notoc to suppress heading from the ToC > + ;; else include all headings (including unnumbered) like othe= r modes > + (unnumbered-type (org-export-get-node-property :UNNUMBERED he= adline t)) Maybe "Latex TOC style" and "Org TOC style". --=20 Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at