Re: PATCH: ox-latex table of contents patch consolidated (was: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)])

2025-02-24 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: >> 2. I renamed need-alternative to need-toc. IMHO, it is a bit more >> clear. I also updated the commentary to explain what is going on. > > I was thinking more in the line of need-alternative-p since all this comes > when we guess we need an alternative te

Re: PATCH: ox-latex table of contents patch consolidated (was: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)])

2025-02-23 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > Would \addcontentsline be possible? Yes, but we would add complexity > unnecessarily. See > https://tex.stackexchange.com/questions/101538/addcontentsline-lines-added-to-toc-not-numbered-and-lines-added-to-tot-not-sh > >

Re: PATCH: ox-latex table of contents patch consolidated (was: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)])

2025-02-23 Thread Pedro Andres Aranda Gutierrez
> El 23 feb 2025, a las 12:54, Ihor Radchenko escribió: > > Pedro Andres Aranda Gutierrez writes: > >> We would forget unnumbered sections with alt_title… > > May you elaborate? Maybe I didn’t understand completely, so let’s go one step back. Why do we all need this (from a LaTeX point of

Re: PATCH: ox-latex table of contents patch consolidated (was: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)])

2025-02-23 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > We would forget unnumbered sections with alt_title… May you elaborate?

Re: PATCH: ox-latex table of contents patch consolidated (was: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)])

2025-02-23 Thread Pedro Andres Aranda Gutierrez
We would forget unnumbered sections with alt_title… Enviado desde mi iPhone > El 23 feb 2025, a las 11:13, Ihor Radchenko escribió: > > Pedro Andres Aranda Gutierrez writes: > >>> ;; section... we need the brackets >>> (let* >>>;; Replace sq

Re: PATCH: ox-latex table of contents patch consolidated (was: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)])

2025-02-23 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: >>;; section... we need the brackets >>(let* >> ;; Replace square brackets with parenthesis >> ;; since square brackets are not supported in >> ;; optional

Re: PATCH: ox-latex table of contents patch consolidated (was: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)])

2025-02-23 Thread Pedro Andres Aranda Gutierrez
Hi Ihor, I’m on the road and with no access to the development computer right now. Answers inline: > El 23 feb 2025, a las 10:24, Ihor Radchenko escribió: > > Pedro Andres Aranda Gutierrez writes: > >>> May you please explain this change? >> >> At one point, while debugging, it helped me as

Re: PATCH: ox-latex table of contents patch consolidated (was: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)])

2025-02-23 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: >> May you please explain this change? > > At one point, while debugging, it helped me assuring need-alternative being a > boolean. Ignore if you don’t like it. >>> - ;; legacy behavior (á la LaTeX) >>> + ;; Treat th

Re: PATCH: ox-latex table of contents patch consolidated (was: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)])

2025-02-23 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > To be honest, that part was a bit cryptic for me. I couldn’t/can’t understand > why organizers-export-get-alt-title’ will return something when nothing is > set in the org document. Maybe a TODO for the next slot of coding? This was introduced in a15a6

Re: PATCH: ox-latex table of contents patch consolidated (was: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)])

2025-02-22 Thread Pedro Andres Aranda Gutierrez
To be honest, that part was a bit cryptic for me. I couldn’t/can’t understand why organizers-export-get-alt-title’ will return something when nothing is set in the org document. Maybe a TODO for the next slot of coding? Best, /PA > El 22 feb 2025, a las 9:32, Ihor Radchenko escribió: > > [ I

Re: PATCH: ox-latex table of contents patch consolidated (was: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)])

2025-02-22 Thread Ihor Radchenko
[ I am re-adding Org mailing list to CC to keep the discussion public ] >>> -(unless (equal full-text-no-footnote full-text) >>> - (setq opt-title full-text-no-footnote)) >>> +(when (and (not (string= full-text-no-footnote full-text)) ;; >>> when we have footn

Re: PATCH: ox-latex table of contents patch consolidated (was: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)])

2025-02-21 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > Thanks for spotting the alt-title handling ;-) Apply this on top of my last > patch. Thanks! > - (let ((need-alternative (string-match "\\`\\(.+?\\){" > section-fmt)) > + (let ((need-alternative (not (null (string-match > "\\`\

Re: PATCH: ox-latex table of contents patch consolidated (was: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)])

2025-02-21 Thread Pedro Andres Aranda Gutierrez
Thanks for spotting the alt-title handling ;-) Apply this on top of my last patch. Best, /PA On Thu, 20 Feb 2025 at 19:13, Ihor Radchenko wrote: > Pedro Andres Aranda Gutierrez writes: > > > Final version... got the wrong file... sorry /PA > > Thanks! > You still did not address all the earlie

Re: PATCH: ox-latex table of contents patch consolidated

2025-01-21 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > I will need a couple of days offline. I'm sending the last consolidated > version of the ToC patch for ox-latex.el Thanks! Looks like you omitted some of the points discussed (your patch changes how opt-title is handled in unnumbered sections with footnote