Can't jump back from a bib item to the corresponding cite. #11

Closed
laishulu opened this Issue Aug 30, 2012 · 11 comments

Comments

Projects
None yet
3 participants
@laishulu

It's far beyond my expectation that it provides a feature the we can jump from a citation to the bibitem back and forth.

But I find there is a bug that I can't jump back from a bib item to the corresponding cite.

I notice the href property of the bititem node is right, but there is no corresponding id property in the cite node.

I think only a minor modification is needed, which would cost you only 5 miniutes :-)

@moorepants

This comment has been minimized.

Show comment Hide comment
@moorepants

moorepants Aug 30, 2012

I've observed this too. It seems as if the citation hyperlinks are broken in the LaTeX pdf.

Back and forth might not be possible because you may have multiple citations for a single reference.

I've observed this too. It seems as if the citation hyperlinks are broken in the LaTeX pdf.

Back and forth might not be possible because you may have multiple citations for a single reference.

@laishulu

This comment has been minimized.

Show comment Hide comment
@laishulu

laishulu Aug 30, 2012

I found it in the generated HTML pages, not LaTeX pdf.

I found it in the generated HTML pages, not LaTeX pdf.

@moorepants

This comment has been minimized.

Show comment Hide comment
@moorepants

moorepants Aug 30, 2012

The backlinks from the reference list may not be possible due to the fact that you can have multiple citations for a single reference.

The backlinks from the reference list may not be possible due to the fact that you can have multiple citations for a single reference.

@laishulu

This comment has been minimized.

Show comment Hide comment
@laishulu

laishulu Aug 30, 2012

aha... you have forgot it yourself.
The result bibitem is in the following form:

[33] (1, 2) Kiran-Kumar .....

where 33 is not a link, but 1 and 2 in the parenthesis are links, each links to its citation.

aha... you have forgot it yourself.
The result bibitem is in the following form:

[33] (1, 2) Kiran-Kumar .....

where 33 is not a link, but 1 and 2 in the parenthesis are links, each links to its citation.

@laishulu

This comment has been minimized.

Show comment Hide comment
@laishulu

laishulu Sep 1, 2012

Hei, Mr. Troffaes,
Did you see my message?
because different citation of one bibitem is differentiated by a differnt number just before the author field, in the form of:

[33] (1, 2) Kiran-Kumar .....

It's absolutely possible to back link from the preceding number to each citation.

laishulu commented Sep 1, 2012

Hei, Mr. Troffaes,
Did you see my message?
because different citation of one bibitem is differentiated by a differnt number just before the author field, in the form of:

[33] (1, 2) Kiran-Kumar .....

It's absolutely possible to back link from the preceding number to each citation.

@mcmtroffaes

This comment has been minimized.

Show comment Hide comment
@mcmtroffaes

mcmtroffaes Sep 3, 2012

Owner

Thanks for the report. Actually, I've also observed this problem, and it's an issue with citation nodes in general. The bug resides in either Sphinx or docutils: try to generate a document with regular Sphinx citations, and you'll see that backlinks won't work. I'll post a ticket for it upstream.

In the mean time, is there a simple workaround? How should we modify the generated citation, or citation_reference, nodes, so the backlinks work?

Owner

mcmtroffaes commented Sep 3, 2012

Thanks for the report. Actually, I've also observed this problem, and it's an issue with citation nodes in general. The bug resides in either Sphinx or docutils: try to generate a document with regular Sphinx citations, and you'll see that backlinks won't work. I'll post a ticket for it upstream.

In the mean time, is there a simple workaround? How should we modify the generated citation, or citation_reference, nodes, so the backlinks work?

@laishulu

This comment has been minimized.

Show comment Hide comment
@laishulu

laishulu Sep 3, 2012

I don't know, but the most naive solution I think is to add a id attribute in the genrated cite node with the value of the bibitem occurence number.

laishulu commented Sep 3, 2012

I don't know, but the most naive solution I think is to add a id attribute in the genrated cite node with the value of the bibitem occurence number.

@mcmtroffaes

This comment has been minimized.

Show comment Hide comment
@mcmtroffaes

mcmtroffaes Sep 5, 2012

Owner
@mcmtroffaes

This comment has been minimized.

Show comment Hide comment
@mcmtroffaes

mcmtroffaes Dec 19, 2012

Owner

A fix in Sphinx was posted by Nozomu Kaneko:

https://bitbucket.org/birkenfeld/sphinx/pull-request/97

Owner

mcmtroffaes commented Dec 19, 2012

A fix in Sphinx was posted by Nozomu Kaneko:

https://bitbucket.org/birkenfeld/sphinx/pull-request/97

@mcmtroffaes

This comment has been minimized.

Show comment Hide comment
@mcmtroffaes

mcmtroffaes Jun 6, 2013

Owner

Status update: footnote backreferences are fixed with Sphinx 1.1.3 (possibly earlier, but that's the one I tested with), however it seems that citation backreferences still do not work...

Owner

mcmtroffaes commented Jun 6, 2013

Status update: footnote backreferences are fixed with Sphinx 1.1.3 (possibly earlier, but that's the one I tested with), however it seems that citation backreferences still do not work...

@mcmtroffaes

This comment has been minimized.

Show comment Hide comment
@mcmtroffaes

mcmtroffaes Jun 6, 2013

Owner

... actually it does work with Sphinx 1.2b1! Closing.

Owner

mcmtroffaes commented Jun 6, 2013

... actually it does work with Sphinx 1.2b1! Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment