Fix #8169: LaTeX: pxjahyper loaded even when latex_engine is not platex

This commit is contained in:
Takeshi KOMIYA
2020-09-13 11:10:33 +09:00
parent 0b44e68d4f
commit 564a577a4a
2 changed files with 2 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ Bugs fixed
* #8143: autodoc: AttributeError is raised when False value is passed to
autodoc_default_options
* #8192: napoleon: description is disappeared when it contains inline literals
* #8169: LaTeX: pxjahyper loaded even when latex_engine is not platex
* #8093: The highlight warning has wrong location in some builders (LaTeX,
singlehtml and so on)

View File

@@ -505,7 +505,7 @@ def validate_latex_theme_options(app: Sphinx, config: Config) -> None:
def install_pakcages_for_ja(app: Sphinx) -> None:
"""Install packages for Japanese."""
if app.config.language == 'ja':
if app.config.language == 'ja' and app.config.latex_engine in ('platex', 'uplatex'):
app.add_latex_package('pxjahyper', after_hyperref=True)