From c0f0edfaba9bddf4415f649df55953bbd249626c Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 24 Mar 2023 22:26:11 -0400 Subject: [PATCH] tweak sphinx config that PDF and HTML manual have the same chapter numbers --- doc/utils/sphinx-config/conf.py.in | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/utils/sphinx-config/conf.py.in b/doc/utils/sphinx-config/conf.py.in index 0da553d755..0a82f63d5c 100644 --- a/doc/utils/sphinx-config/conf.py.in +++ b/doc/utils/sphinx-config/conf.py.in @@ -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}}