Skip to content

Commit

Permalink
Merge pull request #10859 from jfbu/latex_doc_tableofcontentshook
Browse files Browse the repository at this point in the history
LaTeX: improve doc of \sphinxtableofcontents (closes #10858)
  • Loading branch information
jfbu committed Sep 24, 2022
2 parents 6508121 + 89a656d commit 2f2bd55
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/latex.rst
Expand Up @@ -1300,6 +1300,12 @@ Macros
``\sphinxtableofcontentshook``. This macro is also executed by the
``'howto'`` docclass, but defaults to empty with it.

.. hint::

If adding to preamble the loading of ``tocloft`` package, also add to
preamble ``\renewcommand\sphinxtableofcontentshook{}`` else it will reset
``\l@section`` and ``\l@subsection`` cancelling ``tocloft`` customization.

- ``\sphinxmaketitle``: Used as the default setting of the ``'maketitle'``
:confval:`latex_elements` key.
Defined in the class files :file:`sphinxmanual.cls` and
Expand Down

0 comments on commit 2f2bd55

Please sign in to comment.