Skip to content

Commit c2eae8d

Browse files
committed
DOC: Make chapters appear in PDF table of contents
1 parent 390fc51 commit c2eae8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,8 @@ def _check_dependencies():
461461

462462
# Additional stuff for the LaTeX preamble.
463463
latex_elements['preamble'] = r"""
464+
% Show Parts and Chapters in Table of Contents
465+
\setcounter{tocdepth}{0}
464466
% One line per author on title page
465467
\DeclareRobustCommand{\and}%
466468
{\end{tabular}\kern-\tabcolsep\\\begin{tabular}[t]{c}}%

0 commit comments

Comments
 (0)