From cab955630cef21d2ff8cc94eee5b905c2ddadaf2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 6 Feb 2022 08:26:15 +0530 Subject: [PATCH] User manual: Fix mart quotes and dashes not rendered in PDF version Move to lualatex instead of pdflatex as the latex engine. Hopefully it doesnt break something else. --- manual/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manual/conf.py b/manual/conf.py index 77d2fbefb8..c5dea00c7c 100644 --- a/manual/conf.py +++ b/manual/conf.py @@ -239,11 +239,13 @@ latex_documents = [(master_doc, 'calibre.tex', title, 'Kovid Goyal', 'manual', F # If false, no module index is generated. # latex_use_modindex = True +# we use lualatex as it is actively maintained and pdflatex and xelatex fail +# to render smart quotes and dashes +latex_engine = 'lualatex' latex_logo = 'resources/logo.png' latex_show_pagerefs = True latex_show_urls = 'footnote' latex_elements = { 'papersize':'letterpaper', - 'fontenc':r'\usepackage[T2A,T1]{fontenc}', 'preamble': r'\renewcommand{\pageautorefname}{%s}' % _('page'), }