File tree 3 files changed +12
-0
lines changed
3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ Available Flags
18
18
19
19
``USE_XELATEX_BINARY ``: :featureflags: `USE_XELATEX_BINARY `
20
20
21
+ ``USE_LUALATEX_BINARY ``: :featureflags: `USE_LUALATEX_BINARY `
22
+
23
+ ``USE_PLATEX_BINARY ``: :featureflags: `USE_PLATEX_BINARY `
24
+
21
25
``ALLOW_DEPRECATED_WEBHOOKS ``: :featureflags: `ALLOW_DEPRECATED_WEBHOOKS `
22
26
23
27
``PIP_ALWAYS_UPGRADE ``: :featureflags: `PIP_ALWAYS_UPGRADE `
Original file line number Diff line number Diff line change @@ -395,6 +395,10 @@ def build(self):
395
395
# https://github.com/rtfd/readthedocs.org/issues/4454
396
396
if self .project .has_feature (Feature .USE_XELATEX_BINARY ):
397
397
latex_cmd = 'xelatex'
398
+ elif self .project .has_feature (Feature .USE_LUALATEX_BINARY ):
399
+ latex_cmd = 'lualatex'
400
+ elif self .project .has_feature (Feature .USE_PLATEX_BINARY ):
401
+ latex_cmd = 'platex'
398
402
else :
399
403
latex_cmd = 'pdflatex'
400
404
Original file line number Diff line number Diff line change @@ -1314,13 +1314,17 @@ def add_features(sender, **kwargs):
1314
1314
DONT_SHALLOW_CLONE = 'dont_shallow_clone'
1315
1315
USE_TESTING_BUILD_IMAGE = 'use_testing_build_image'
1316
1316
USE_XELATEX_BINARY = 'use_xelatex_binary'
1317
+ USE_LUALATEX_BINARY = 'use_lualatex_binary'
1318
+ USE_PLATEX_BINARY = 'use_platex_binary'
1317
1319
1318
1320
FEATURES = (
1319
1321
(USE_SPHINX_LATEST , _ ('Use latest version of Sphinx' )),
1320
1322
(USE_SETUPTOOLS_LATEST , _ ('Use latest version of setuptools' )),
1321
1323
(ALLOW_DEPRECATED_WEBHOOKS , _ ('Allow deprecated webhook views' )),
1322
1324
(PIP_ALWAYS_UPGRADE , _ ('Always run pip install --upgrade' )),
1323
1325
(USE_XELATEX_BINARY , _ ('Use "xelatex" binary to build PDF files' )),
1326
+ (USE_LUALATEX_BINARY , _ ('Use "lualatex" binary to build PDF files' )),
1327
+ (USE_PLATEX_BINARY , _ ('Use "platex" binary to build PDF files' )),
1324
1328
(SKIP_SUBMODULES , _ ('Skip git submodule checkout' )), (
1325
1329
DONT_OVERWRITE_SPHINX_CONTEXT ,
1326
1330
_ (
You can’t perform that action at this time.
0 commit comments