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
This commit is contained in:
Andreas Jaeger 2020-05-15 08:41:06 +02:00
parent 31642dd188
commit 84a9dd90d5
2 changed files with 7 additions and 2 deletions

View File

@ -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)

View File

@ -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.