From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: [PATCH]: ox-latex.eel: handle unnumbered sections in TOC correctly
Date: Wed, 1 Jan 2025 16:48:45 +0100 [thread overview]
Message-ID: <CAO48Bk9Ne46=AA5frobx2P_6rp3N1GYnqDpVoGCexQg65oQwzQ@mail.gmail.com> (raw)
In-Reply-To: <87ikqyfxvm.fsf@localhost>
[-- Attachment #1: Type: text/plain, Size: 2419 bytes --]
On Wed, 1 Jan 2025 at 14:47, Ihor Radchenko <yantar92@posteo.net> wrote:
> 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.
>
But this happens because of the way LaTeX works...
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.
> 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.
>
Call them LaTeX-native defaults (sounds better than historic).
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
For example, LaTeX export excludes every unnumbered headline from the table
of contents, unless you set the 'ALT_TITLE' property to the heading you
want to see in the table of contents.
>
> --
> 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>
>
Happy New Year, /PA
--
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler
Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet
[-- Attachment #2: Type: text/html, Size: 3960 bytes --]
next prev parent reply other threads:[~2025-01-01 15:50 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
2025-01-01 15:48 ` Pedro Andres Aranda Gutierrez [this message]
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAO48Bk9Ne46=AA5frobx2P_6rp3N1GYnqDpVoGCexQg65oQwzQ@mail.gmail.com' \
--to=paaguti@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@posteo.net \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).