-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some indexed terms are ignored when using xelatex engine with memoir class #8442
Comments
Hi, thanks for the report and testing file. One can also reproduce your issue with default latex engine Generally speaking, In the case at hand, this is clearly a bug in memoir class which tries to intervene into hyperref already intricate dealings, and in so doing makes the It turns out that memoir documentation does mention xindy in its section 17.2.3, MakeIndex, page 312 of v3.7n, 2020/10/04:
Problem is that doing so (i.e. adding I found a fix which is to set forcefully in the preamble some internal non documented memoir boolean:
This issue is borderline to wontfix, because as I said it is miraculous if memoir works with Sphinx. The former is destined to fine-tuning manually crafter document, the latter to produce latex documents in an automated way from non latex sources and requires already quite a few latex packages, and Sphinx contributed latex macros to achieve its task. Pondering this issue took me a disproportionate amount of time on non-Sphinx code and although the above seems to fix it, I can not test it extensively nor go to the effort of trying to set up unit tests for it, and fixing it causes us to add one line to our latex template especially for memoir class support: and there are also already some added patches for memoir elsewhere in our latex code. It is impossible to consider this a permanent task to maintain compatibility with memoir. I can not be certain the above fix (which uses an undocumented boolean from memoir code) will not fail at next memoir release. And what happens if memoir's author becomes aware of the incomplete compatibility with hyperref options? An upstream fix might create problem so I will have to do something such as |
Fix #8442: missing index entries in pdf output with memoir + xindy
Describe the bug
Having a document with some indexed terms, when running
make latexpdf
withlatex_engine = 'xelatex'
, and'memoir'
theme inlatex_documents
, the index is mostly empty in the output PDF file. Most of the terms are absent.To Reproduce
$ sphinx-quicktart # project: Foo; author: Me; version: 0.1.0; leave other options unchanged
conf.py
and add the following lines.index.rst
and add the following line in just beforeIndices and tables
.$ make latexpdf
WARNING: unknown attribute `hyperpage'! (ignored)
Expected behavior
The index should have the word Foo with and an hyperlink to the first page like this:
Foo, 1
Environment info
Additional context
The following other combinations work by producing correct index page:
'pdflatex'
engine with'memoir'
theme,'xelatex'
engine with'manual'
theme.I think the following patch can solve the issue, but I am not sure if this is the correct way to solve the problem. Maybe it is more a xelatex or a memoir issue.
The text was updated successfully, but these errors were encountered: