From 84a9dd90d5146352aedee9be610c1b3dbf23e7c7 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 15 May 2020 08:41:06 +0200 Subject: [PATCH] Use xelatex as latex_engine There's no easy way to check whether the user is overwritten latex_engine, so revert I3a9d96c4896a0d5ccc85b74562d35852a837f29f partially and continue to always set latex_engine. Not setting latex_engine to xelatex breaks a number of OpenStack repositories that dependend on the default of xelatex in openstackdocstheme. Change-Id: I06f1d577d108fd8f16b5aad3e00725f55817ddba --- openstackdocstheme/ext.py | 4 ++-- releasenotes/notes/latex_engine-cc35cb3a4ad2fa00.yaml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/latex_engine-cc35cb3a4ad2fa00.yaml diff --git a/openstackdocstheme/ext.py b/openstackdocstheme/ext.py index 41e475df..a77b7034 100644 --- a/openstackdocstheme/ext.py +++ b/openstackdocstheme/ext.py @@ -383,8 +383,8 @@ def _builder_inited(app): app.config.version = project_version app.config.release = project_version - if not app.config.latex_engine: - app.config.latex_engine = 'xelatex' + # Override default setting + app.config.latex_engine = 'xelatex' theme_logo = paths.get_theme_logo_path(app.config.html_theme) pdf_theme_path = paths.get_pdf_theme_path(app.config.html_theme) diff --git a/releasenotes/notes/latex_engine-cc35cb3a4ad2fa00.yaml b/releasenotes/notes/latex_engine-cc35cb3a4ad2fa00.yaml new file mode 100644 index 00000000..23015e74 --- /dev/null +++ b/releasenotes/notes/latex_engine-cc35cb3a4ad2fa00.yaml @@ -0,0 +1,5 @@ +fixes: + - | + ``latex_engine`` is always set to ``xelatex``, there's no good solution + to check whether it is overriden. This restores the behavior before + version 2.1.0.