Skip to content

Commit

Permalink
Merge pull request sphinx-doc#8764 from jfbu/8442_latex_memoir_index
Browse files Browse the repository at this point in the history
Fix sphinx-doc#8442: missing index entries in pdf output with memoir + xindy
  • Loading branch information
tk0miya committed Jan 26, 2021
2 parents e0321eb + 2772909 commit 9f2f6b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------
Expand Down
3 changes: 3 additions & 0 deletions sphinx/templates/latex/latex.tex_t
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 9f2f6b0

Please sign in to comment.