From a02e8b1e9572fdf39d2951de94b691c56021d680 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sun, 3 May 2020 09:22:01 +0200 Subject: [PATCH] docs/conf.py: fix baselineskip in code-blocks with scaled font --- docs/conf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index af77b19a..8bd382de 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -272,7 +272,11 @@ latex_elements = { # Additional stuff for the LaTeX preamble. # - # 'preamble': '', + # fix baselineskip in code-blocks with scaled font + # see: https://github.com/sphinx-doc/sphinx/issues/6733 + 'preamble': r''' +\fvset{formatcom=\baselineskip9pt\relax\let\strut\empty} +''', # Latex figure (float) alignment #