summaryrefslogtreecommitdiff
path: root/doc/conf.py
diff options
context:
space:
mode:
authorjfbu <jfbu@free.fr>2018-03-30 10:32:08 +0200
committerjfbu <jfbu@free.fr>2018-03-30 10:32:08 +0200
commitd8b9baf1cbde26e00c733f7eeee90cc7998b5c33 (patch)
treef5c11c9625791a2751f1edec36493791fffe82af /doc/conf.py
parent98e73ecf77982ad1307bf60bce9c4b4276906b86 (diff)
downloadsphinx-git-d8b9baf1cbde26e00c733f7eeee90cc7998b5c33.tar.gz
Better font config for Sphinx own PDF docs
Diffstat (limited to 'doc/conf.py')
-rw-r--r--doc/conf.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/conf.py b/doc/conf.py
index 3c8b9eae1..43b0d72b3 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -56,8 +56,13 @@ latex_documents = [('contents', 'sphinx.tex', 'Sphinx Documentation',
'Georg Brandl', 'manual', 1)]
latex_logo = '_static/sphinx.png'
latex_elements = {
- 'fontpkg': '\\usepackage{palatino}',
+ 'fontpkg': r'''
+\usepackage[sc]{mathpazo}
+\usepackage[scaled]{helvet}
+\usepackage{courier}
+''',
'passoptionstopackages': '\\PassOptionsToPackage{svgnames}{xcolor}',
+ 'preamble': '\\fvset{fontsize=auto}',
# fix missing index entry due to RTD doing only once pdflatex after makeindex
'printindex': r'''
\IfFileExists{\jobname.ind}