summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--sphinx/templates/latex/latex.tex_t3
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 789899d7f..2cb81ac6e 100644
--- a/CHANGES
+++ b/CHANGES
@@ -100,6 +100,8 @@ Bugs fixed
specified
* #8735: LaTeX: wrong internal links in pdf to captioned code-blocks when
:confval:`numfig` is not True
+* #8442: LaTeX: some indexed terms are ignored when using xelatex engine
+ (or pdflatex and :confval:`latex_use_xindy` set to True) with memoir class
Testing
--------
diff --git a/sphinx/templates/latex/latex.tex_t b/sphinx/templates/latex/latex.tex_t
index 5082254e7..e288dda93 100644
--- a/sphinx/templates/latex/latex.tex_t
+++ b/sphinx/templates/latex/latex.tex_t
@@ -17,6 +17,9 @@
%% turn off hyperref patch of \index as sphinx.xdy xindy module takes care of
%% suitable \hyperpage mark-up, working around hyperref-xindy incompatibility
\PassOptionsToPackage{hyperindex=false}{hyperref}
+%% memoir class requires extra handling
+\makeatletter\@ifclassloaded{memoir}
+{\ifdefined\memhyperindexfalse\memhyperindexfalse\fi}{}\makeatother
<% endif -%>
<%= passoptionstopackages %>
\PassOptionsToPackage{warn}{textcomp}