docs: use better fonts for PDFs

Font XCharter and Lato have better quality.
This commit is contained in:
Dietmar Maurer 2020-05-04 10:15:27 +02:00
parent bca294a17c
commit fc598cdbe1
2 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ html: ${GENERATED_SYNOPSIS}
.PHONY: latexpdf
latexpdf: ${GENERATED_SYNOPSIS}
@echo "Requires python3-sphinx, texlive-xetex and xindy"
@echo "Requires python3-sphinx, texlive-xetex, xindy and texlive-fonts-extra"
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through xelatex..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf

View File

@ -280,8 +280,8 @@ latex_elements = {
'pointsize': '10pt',
'fontpkg': r'''
\setmainfont{DejaVu Serif}
\setsansfont{DejaVu Sans}
\setmainfont{XCharter}
\setsansfont{Lato}
\setmonofont{DejaVu Sans Mono}
''',