[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PATCH: fix ToC generation in the Latex exporter
From: |
Ihor Radchenko |
Subject: |
Re: PATCH: fix ToC generation in the Latex exporter |
Date: |
Sat, 11 Jan 2025 08:47:15 +0000 |
Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:
> Please find attached a patch to fix ToC generation in the LaTeX exporter.
> With this, you don't need to reach back to @@latex @@ constructs to get
> your ToC alright. I have added an option to generate ToC's that is closer
> to LaTeX (num:latex) tha to org
Thanks!
I have been thinking about the consequences of changing the TOC
generation defaults, and my conclusion so far is that we risk breaking
way too many legacy .org documents.
And since old .org documents tend to have "num:t" inside, we cannot rely
upon num:latex returning to the previous behavior.
I think that a more backwards-compatible solution would be creating a
new custom option that will control how ox-latex treats "num:t". By
default, that custom option will keep the old behavior. (This option is
on top of what you have already done).
WDYT?
--
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>