From 324d8059143f66979b6e99104a008469ff5099a8 Mon Sep 17 00:00:00 2001 From: Pierre de Buyl Date: Fri, 9 Dec 2016 14:47:04 +0100 Subject: [PATCH] FIX bibliography handling for LaTeX output Sphinx adds automatically a clearpage command before the bibliography. If this is the start of a chapter, two blank pages are generated uselessly. --- doc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index f3da822..cd1f7cd 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -234,7 +234,7 @@ # Additional stuff for the LaTeX preamble. 'preamble': r''' \makeatletter -\renewenvironment{thebibliography}[1] +\renewenvironment{sphinxthebibliography}[1] { \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}% \list{\@biblabel{\@arabic\c@enumiv}}%