From e1179c223041862bbcc94507388fb89bafa177d1 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sun, 21 May 2023 17:04:46 +0200 Subject: [PATCH] LaTeX: Use CSS-style options, avoid sphinxheavybox work-around See https://github.com/sphinx-doc/sphinx/pull/11234. --- doc/conf.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 39d673a6..0107d01d 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -145,14 +145,17 @@ 'printindex': '', 'sphinxsetup': r""" HeaderFamily=\rmfamily\bfseries, -%verbatimwithframe=false, -%verbatimwrapslines=false, -%verbatimhintsturnover=false, -noteBorderColor={HTML}{E0E0E0}, -noteborder=0.5pt, -warningBorderColor={HTML}{E0E0E0}, -warningborder=1.5pt, -warningBgColor={HTML}{FBFBFB}, +div.note_border-TeXcolor={HTML}{E0E0E0}, +div.note_border-width=0.5pt, +div.note_box-decoration-break=slice, +div.warning_border-TeXcolor={HTML}{E0E0E0}, +div.warning_border-width=1.5pt, +div.warning_background-TeXcolor={HTML}{FBFBFB}, +div.warning_box-decoration-break=slice, +div.topic_box-shadow=none, +div.topic_border-TeXcolor={HTML}{E0E0E0}, +div.topic_border-width=0.5pt, +div.topic_box-decoration-break=slice, """, 'fontpkg': r""" \usepackage{mathpazo} @@ -162,8 +165,6 @@ """, 'preamble': r""" \urlstyle{tt} -\renewenvironment{sphinxnote}[1] - {\begin{sphinxheavybox}\sphinxstrong{#1} }{\end{sphinxheavybox}} """, }