sphinx-doc / sphinx

The Sphinx documentation generator
https://www.sphinx-doc.org/
Other
6.46k stars 2.1k forks source link

Footnote back-reference not working for citations #972

Closed shimizukawa closed 9 years ago

shimizukawa commented 9 years ago

With this minimal example (and possibly text added between the citation and the footnote) for citations taken from http://sphinx.pocoo.org/rest.html#citations , the back-reference linking back from the footnote to the original citation is not working right. For footnote, it works, but for citations, the id which the back-reference links to is never created in the html document. In other words, add lots of lines of text between the citation and footnote, click on the first citation and you get taken to the bottom of the page. Click on the back-link, and nothing happens, whereas one should get taken back up.

Thanks so much for sphinx, it is really awesome!! Thanks for all your work!

Lorem ipsum [Ref]_ dolor sit amet.

.. [Ref] Book or article reference, URL or whatever.

shimizukawa commented 9 years ago

From Matthias Troffaes on 2012-09-05 12:11:03+00:00

This is reported downstream as well:

https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/11

It seems that the id of the back-reference in the citation node does not match the id of the citation_reference node.

shimizukawa commented 9 years ago

From Nozomu Kaneko on 2012-12-19 09:04:29+00:00

duplicate issue: #1058

And there is also a pullreq (pull request #97) to fix the issue.

shimizukawa commented 9 years ago

From Matthias Troffaes on 2012-12-19 10:33:55+00:00

Awesome! Thanks a lot. I'll test it at the soonest possible occasion.

shimizukawa commented 9 years ago

From Matthias Troffaes on 2013-06-06 13:03:09+00:00

Citation backlinks appear to work in Sphinx 1.2b1 (not in 1.1.3, oddly, although footnote backlinks do work in 1.1.3), so I think this issue can be closed.

shimizukawa commented 9 years ago

From Takayuki Shimizukawa on 2013-06-07 00:26:34+00:00

Duplicate of #1058.

shimizukawa commented 9 years ago

From Takayuki Shimizukawa on 2013-06-07 00:27:17+00:00

Matthias Troffaes Thanks to confirm!