You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For 'manual' document, the Sphinx latex class file does \setcounter{tocdepth}{1} which gives this kind of table of contents:
which contains two levels (\chapter and \section).
But for 'howto' documents which are supposedly shorter ones, Sphinx latex class does no special setting hence the LaTeX article.cls default of \setcounter{tocdepth}{3} is not modified, giving this result:
i.e. we see section, subsection and subsubsection. Moreover Sphinx modifies for LaTeX secnumdepth the original default of 3 (which would have given a numbered subsubsection) to 2, producing unnumbered subsubsection hence a strange look of the TOC above.
…#4330)
Memo: for Japanese documents, jreport.cls already does that, so this
commit changes nothing. However as the class uses ``\chapter``, this
means that by default howto documents table of contents in PDF have
three levels, whereas manual documents only have two.
For
'manual'
document, the Sphinx latex class file does\setcounter{tocdepth}{1}
which gives this kind of table of contents:which contains two levels (
\chapter
and\section
).But for
'howto'
documents which are supposedly shorter ones, Sphinx latex class does no special setting hence the LaTeX article.cls default of\setcounter{tocdepth}{3}
is not modified, giving this result:i.e. we see section, subsection and subsubsection. Moreover Sphinx modifies for LaTeX
secnumdepth
the original default of3
(which would have given a numbered subsubsection) to2
, producing unnumbered subsubsection hence a strange look of the TOC above.Reproducible project / your project
test_secnumdepth.zip
Environment info
The text was updated successfully, but these errors were encountered: