Adjusts the default LaTeX output as follows:
The captions from
toctreedirectives are converted into document parts.
The PDF outline has the correct hierarchy, including having the indices as top-level elements.
New in version 2.1.0.
sphinx_toolbox.tweaks.latex_toc by adding the following
extensions variable in your
extensions = [ ... 'sphinx_toolbox.tweaks.latex_toc', ]
For more information see https://www.sphinx-doc.org/en/master/usage/extensions#third-party-extensions .
Sphinx) – The Sphinx application.