From: Ihor Radchenko <yantar92@posteo.net>
To: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: [PATCH]: ox-latex.eel: handle unnumbered sections in TOC correctly
Date: Wed, 01 Jan 2025 13:48:45 +0000 [thread overview]
Message-ID: <87ikqyfxvm.fsf@localhost> (raw)
In-Reply-To: <CAO48Bk-N8XR2S2t+QNM9RyH8RAcZouOpkKyQJpWfdxegQb7zJQ@mail.gmail.com>
Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:
> Attached is a patch that fixes adding an unnumbered section to the TOC with
> 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 ‘UNNUMBERED’ property to ‘notoc’ 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.
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2025-01-01 13:48 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-26 17:08 LaTeX export is broken with 'num:nil` and 'ALT_TITLE` Pedro Andres Aranda Gutierrez
2024-12-26 17:15 ` Pedro Andres Aranda Gutierrez
2024-12-27 6:59 ` Pedro Andres Aranda Gutierrez
2024-12-27 17:43 ` Ihor Radchenko
2024-12-27 17:56 ` Pedro Andres Aranda Gutierrez
2024-12-27 18:01 ` Ihor Radchenko
2024-12-27 18:07 ` Pedro Andres Aranda Gutierrez
2024-12-30 7:17 ` Pedro Andres Aranda Gutierrez
2024-12-30 12:44 ` [PATCH]: ox-latex.eel: handle unnumbered sections in TOC correctly Pedro Andres Aranda Gutierrez
2024-12-30 16:53 ` Ihor Radchenko
[not found] ` <CAO48Bk8dXigB0qbXzCuKZK9X4=Woy2+4xpA2QtC4O8Lx_224BA@mail.gmail.com>
2025-01-01 6:43 ` Pedro Andres Aranda Gutierrez
2025-01-01 13:48 ` Ihor Radchenko [this message]
2025-01-01 15:48 ` Pedro Andres Aranda Gutierrez
2025-01-02 17:12 ` Ihor Radchenko
2025-01-03 7:10 ` Pedro Andres Aranda Gutierrez
2025-01-04 13:09 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ikqyfxvm.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=paaguti@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.