Pedro Andres Aranda Gutierrez <paag...@gmail.com> 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 expected in LaTeX that unnumbered sections
do not go into TOC, why should ALT_TITLE make them go there? Is it
something expected for LaTeX users?

> 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 intended in all backends. This means rewriting
> this part in ox-latex.el.
> Additionally, we add a new value 'toc:latex'  to keep the current behaviour
> in ox-latex (at least, other backends could also implement it).

> Coming from the LaTeX world, I lean towards the current ToC handling in
> ox-latex.el (once fixed). It is closer to what I have been doing for the
> last couple of decades ;-)

Depending on the answer to my question above, we may or may not be able
to apply your existing patch right away. I do not yet have a clear
picture what toc:latex should look like -- never put unnumbered headings
into TOC? Only put them when there is ALT_TITLE?

-- 
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>

Reply via email to