Pedro Andres Aranda Gutierrez <[email protected]> writes:
> Final version... got the wrong file... sorry /PA
Thanks!
You still did not address all the earlier suggestions.
I will repeat the missing ones below for your convenience.
> modified doc/org-manual.org
> @@ -14852,6 +14852,41 @@ *** Quote blocks in LaTeX export
> \end{foreigndisplayquote}
> #+end_example
>
> +#+cindex: LaTeX ToC export a la ~org~
> +#+cindex: @samp{org-latex-toc-include-unnumbered-style}
> +If you want the LaTeX exporter to behave like other exporters,
> +customise the variable ~org-latex-toc-include-unnumbered-style~ and
> +set it to ~t~:
When I was suggesting this customization, what I had in mind is not
t/nil values but 'latex and 'org (style: latex or style: org).
For t/nil, a better name would be simply
org-latex-toc-include-unnumbered.
> +*** ox-latex: Table of contents generation has been fixed and augmented
> +
> +The LaTeX exporter differs from other exporters in that it *does not*
> +export unnumbered sections by default.
> +
> +The LaTeX exporter will use the new property =:UNNUMBERED: toc= to
> +include unnumbered sections in the table of contents.
New property value. UNNUMBERED is the existing property.
> +(defcustom org-latex-toc-include-unnumbered-style nil
> + "Set this variable to true to include unnumbered headings in the
> +table of contents as other exporters do.
> +
> +The default behaviour is to include numbered headings only.
> +To include an unnumbered heading, set the `:UNNUMBERED:'
> +property to `toc'"
> + :group 'org-export-latex
> + :package-version '(Org . "9.8")
> + :type 'boolean
> + :safe #'booleanp)
I am wondering if we need to accompany this with an export option
keyword to be set per-buffer.
> + (when need-alternative
> + (if (string-suffix-p "*" section-kw)
> + (progn ;; unnumbered sections
> + ;; Then we need to obey what the :UNNUMBERED: property
> says
> + (if org-latex-toc-include-unnumbered-style ;; legacy or
> new behavior ?
> + ;; new behavior (รก la org)
May you not use "new" and "legacy" here? Instead, use LaTeX/Org style.
"new" only makes sense for people familiar with the old version of the
code, but not for people reading ox-latex afresh.
> + ;; In all cases
> + ;; Get rid of the footnotes in opt-title
> + (unless (equal full-text-no-footnote full-text)
> + (setq opt-title full-text-no-footnote))
What if ALT_TITLE is specified explicitly in the headline?
--
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>