From 464d0815e99ebd595dadd4b7944f09d97a2b3aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20B?= <2589111+jfbu@users.noreply.github.com> Date: Sat, 24 Sep 2022 23:08:25 +0200 Subject: [PATCH] [DOC] Avoid collisions in TOC of sphinx.pdf in Changelog chapter Relates #10858 --- doc/changes.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/changes.rst b/doc/changes.rst index 3fe90240444..df64b397224 100644 --- a/doc/changes.rst +++ b/doc/changes.rst @@ -11,5 +11,10 @@ Changelog .. raw:: latex \addtocontents{toc}{\protect\setcounter{tocdepth}{1}}% + \makeatletter + \addtocontents{toc}{\def\string\l@section{\string\@dottedtocline{1}{1.5em}{3.3em}}} + \addtocontents{toc}{\def\string\l@subsection{\string\@dottedtocline{2}{4.8em}{4em}}} + \makeatother + .. include:: ../CHANGES