-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
More indexing woes... #381
Comments
Ah, this only happens in one instance. When 'XX' is displayed in the ToC, it only happens where there is link directly above the heading: .. _Prepare:
:index:`Preparing` the |prodname| for use
######################################### |
Actually, it seems any directive before the heading causes this issue, for example: .. raw:: html
... @brechtm is this a rinoh issue or something particular to my install? |
The XX basically means that rinohtype can't resolve the reference or page number. I'll need to investigate to see what's happening exactly. Thanks for the extra info! |
I can't reproduce this (tests-regression/sphinx/test-ref/chapter1.rst - project zip). It could also be a Sphinx bug that's already fixed (I tried with 5.3.0). If you still see this with Sphinx 5.3.0, please provide a minimal Sphinx project triggering the bug. |
This occurs with Sphinx version 6.0.0b3 - I will retest with 5.3 and let you know the results |
Yes, please. |
OK...here it is. Bear in mind this is the content I was using for the pdf rear page development, so its a bit all over the place. However, I have edited the
Hope this helps! |
Thanks, that helped! Turns out this only happens with index terms in section titles that are rendered out of line (BodyPageTemplate.chapter_title_flowables). For the book template (and your derivative), that means chapter titles. In some cases, it does output a page number, possibly a wrong one, and the hyperlink is broken. Not yet sure how to fix this... |
Now I'm aware of the issue, it isn't a problem (I will not add an index entry to a heading where there is a directive preceding it), but if you can find a fix, that would be great (as I am bound to forget about this!) |
To be clear: the issue isn't caused by the directive preceding it. It happens when the index role is used in a chapter title. This is because chapter titles are rendered in a different way (in the Book template, at least). |
Is there an existing issue for this?
PDF produced by rinohtype
With an index entry in a heading:
in the table of contents, instead of the page number, I get 'XX'
Source files
See above. I can of course remove the index entry and place it in the body text. Not sure if this is an actual bug or a peculiarity of my installation.
Versions
The text was updated successfully, but these errors were encountered: