tweak sphinx config that PDF and HTML manual have the same chapter numbers

This commit is contained in:
Axel Kohlmeyer
2023-03-24 22:26:11 -04:00
parent ddaa008ede
commit c0f0edfaba

View File

@ -327,6 +327,7 @@ latex_elements = {
% Make ToC number fields wider to accommodate sections with >= 100 subsections
% or >= 10 subsections with >= 10 subsubsections
\makeatletter
\@addtoreset{chapter}{part}
\renewcommand*{\sphinxtableofcontentshook}{%
\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{3.1em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{4.6em}{4.5em}}