diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-09-13 11:10:33 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-09-13 11:10:33 +0900 |
commit | 564a577a4a27e24efe02e9ff1cb9013dc472ed80 (patch) | |
tree | 0d81001532acad776c1e247a1cdf70a3919c0288 | |
parent | 0b44e68d4fed408453859dd9a83dc3ee68d90c7f (diff) | |
download | sphinx-git-564a577a4a27e24efe02e9ff1cb9013dc472ed80.tar.gz |
Fix #8169: LaTeX: pxjahyper loaded even when latex_engine is not platex
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | sphinx/builders/latex/__init__.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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) diff --git a/sphinx/builders/latex/__init__.py b/sphinx/builders/latex/__init__.py index 88c471675..ffb17d2eb 100644 --- a/sphinx/builders/latex/__init__.py +++ b/sphinx/builders/latex/__init__.py @@ -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) |