summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-09-13 11:10:33 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-09-13 11:10:33 +0900
commit564a577a4a27e24efe02e9ff1cb9013dc472ed80 (patch)
tree0d81001532acad776c1e247a1cdf70a3919c0288
parent0b44e68d4fed408453859dd9a83dc3ee68d90c7f (diff)
downloadsphinx-git-564a577a4a27e24efe02e9ff1cb9013dc472ed80.tar.gz
Fix #8169: LaTeX: pxjahyper loaded even when latex_engine is not platex
-rw-r--r--CHANGES1
-rw-r--r--sphinx/builders/latex/__init__.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 89980530f..abf169928 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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)