-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
LaTeX: Link to #
doesn't work
#11336
Comments
The first link works because EDIT: After reconsidering what I said in #11335 (comment), I think it is reasonable to modify the LaTeX writer in order to incorporate a top-level label. The question being: should it be at the top of the section? the subsection? visual page? EDIT 2: Any thoughts on that @jfbu ? |
Neither? I think it should point to the beginning of the "document". In my alternative implementation spatialaudio/nbsphinx#725 (which I would prefer not having to use!), instead of defining a new label I'm using a I don't know what's most meaningful when implementing this in Sphinx itself, though. |
The closest to the HTML behavior is to go to the top of the section (perhaps we have a misunderstanding about the term "document" but that would be just after |
Yes, I meant what Sphinx calls a "document". That's what I was trying to clarify with |
Describe the bug
I'm not sure if that's expected to work, but since
#something
seems to work, maybe#
should work as well?In HTML output, both work, but there is a different problem (#11335).
How to Reproduce
index.rst
:conf.py
:# empty
Run:
Note that link to subsection has turned into a working link, while link to top is just a passive little piece of text.
The Sphinx run doesn't produce any errors or warnings, but LaTeX reports this:
Environment Information
Sphinx extensions
No response
Additional context
This is related to spatialaudio/nbsphinx#664, which was originally reported by @jfbu.
The text was updated successfully, but these errors were encountered: