From c6e39d858467427ba0255824932fbc8b41694a71 Mon Sep 17 00:00:00 2001 From: Shengyu Zhang Date: Tue, 13 May 2025 02:29:18 +0800 Subject: [PATCH] Add missing backslashes in LaTeX documentation (#13525) --- doc/latex.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/latex.rst b/doc/latex.rst index fce6148094..80762b1c2c 100644 --- a/doc/latex.rst +++ b/doc/latex.rst @@ -500,7 +500,7 @@ Keys that don't need to be overridden unless in special cases are: .. hint:: If the key value is set to - :code-tex:`r'\\newcommand\sphinxbackoftitlepage{}\\sphinxmaketitle'`, then ```` will be typeset on back of title page (``'manual'`` docclass only). @@ -1694,7 +1694,7 @@ Macros .. hint:: If adding to preamble the loading of ``tocloft`` package, also add to - preamble :code-tex:`\\renewcommand\sphinxtableofcontentshook{}` else it + preamble :code-tex:`\\renewcommand\\sphinxtableofcontentshook{}` else it will reset :code-tex:`\\l@section` and :code-tex:`\\l@subsection` cancelling ``tocloft`` customization.