Re: [PATCH]: ox-latex.eel: handle unnumbered sections in TOC correctly

2025-01-04 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > yes, the patch is just a step towards consistency, but I think is is an > important one, because it > makes org-mode not generate illegal/faulty LaTeX code. Right, but it is also kind of half-way between "Org export default" and "LaTeX" behaviors. If it is

Re: [PATCH]: ox-latex.eel: handle unnumbered sections in TOC correctly

2025-01-02 Thread Pedro Andres Aranda Gutierrez
Hi Ihor, yes, the patch is just a step towards consistency, but I think is is an important one, because it makes org-mode not generate illegal/faulty LaTeX code. As for the photo-finish, I have been thinking the following that we can use the 'toc' document property. Values nil and t work as inte

Re: [PATCH]: ox-latex.eel: handle unnumbered sections in TOC correctly

2025-01-02 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: >>(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... Sure. But I thought that y

Re: [PATCH]: ox-latex.eel: handle unnumbered sections in TOC correctly

2025-01-01 Thread Pedro Andres Aranda Gutierrez
On Wed, 1 Jan 2025 at 14:47, Ihor Radchenko wrote: > Pedro Andres Aranda Gutierrez 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 pr

Re: [PATCH]: ox-latex.eel: handle unnumbered sections in TOC correctly

2025-01-01 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez 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_CO

Re: [PATCH]: ox-latex.eel: handle unnumbered sections in TOC correctly

2024-12-31 Thread Pedro Andres Aranda Gutierrez
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. Happy New Year

Re: [PATCH]: ox-latex.eel: handle unnumbered sections in TOC correctly

2024-12-30 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > In some traditions, Xmas presents come on New Years Eve… so here you are. > I hope this covers most use cases. Thanks! May you also add a test? -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Supp

[PATCH]: ox-latex.eel: handle unnumbered sections in TOC correctly

2024-12-30 Thread Pedro Andres Aranda Gutierrez
Hi, In some traditions, Xmas presents come on New Years Eve… so here you are. I hope this covers most use cases. Happy New Year, /PA 0001-ox-latex.el-Fix-adding-unnumbered-sections-to-the-To.patch Description: Binary data > El 27 dic 2024, a las 19:01, Ihor Radchenko escribió: > > Pedro A