summaryrefslogtreecommitdiff
path: root/doc/conf.py
diff options
context:
space:
mode:
authorJean-François B <2589111+jfbu@users.noreply.github.com>2022-07-03 22:32:28 +0200
committerJean-François B <2589111+jfbu@users.noreply.github.com>2022-07-05 09:56:40 +0200
commit4dbb62b9cde353aa7d39d27938d8f7a7969cdd43 (patch)
tree96821ab7f842ea2578d6c325a27793e293668c36 /doc/conf.py
parentd4c8e8422877bdbec62dbaff2491b492b57281bf (diff)
downloadsphinx-git-4dbb62b9cde353aa7d39d27938d8f7a7969cdd43.tar.gz
LaTeX: optional rounded corners for framing of code-blocks
Via a new configuration verbatimradius of 'sphinxsetup', which defaults to 0pt. If this dimension is non zero, the LaTeX package pict2e will be loaded to help construct frames with rounded corners for code-blocks. And if the LaTeX package pict2e was not found, a LaTeX warning is issued during PDF build.
Diffstat (limited to 'doc/conf.py')
-rw-r--r--doc/conf.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/conf.py b/doc/conf.py
index a0d2f4df9..2f504f699 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -74,6 +74,11 @@ latex_elements = {
{\footnotesize\raggedright\printindex}
{\begin{sphinxtheindex}\end{sphinxtheindex}}
''',
+ 'sphinxsetup': """%
+VerbatimColor={RGB}{242,242,242},%
+VerbatimBorderColor={RGB}{32,32,32},%
+verbatimradius=3pt%
+""",
}
latex_show_urls = 'footnote'
latex_use_xindy = True