Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Option for citation links to include name and year, not just year. #428
Request an option for Biblatex to support hyperlinks that include the name and year, not just a year. That is, when using an authoryear style.
At the moment we get something like ...
The requested option would give us ...
Many more cases are handled perfectly in Audrey's answer to http://tex.stackexchange.com/questions/15951/hyperlink-name-with-biblatex-authoryear-biblatex-1-4b
And indeed the code from Audrey's answer solves the issue.
Personally I think that the hyperlinking of name and year (or more precisely hyperlinking that matches all of Audrey's test cases) ought not only be an option, but be the default.
I don't agree. The link target can only be consistently and unambiguously applied to the (extra) year part of the label in the presence of prenotes and compact labels. Handling these cases is possible, but leads to an inconsistent, messy solution (see for example http://tex.stackexchange.com/q/27607). It seems to me that PL's choice to link only part of the label (rather than conform with natbib), was deliberate.
Andrew, I don't follow.
I'm not sure if you are saying that ...
I also don't see what you mean to illustrate by pointing to http://tex.stackexchange.com/questions/27607/biblatex-authoryear-comp-and-hyperlinks that isn't already illustrated by my pointing to http://tex.stackexchange.com/questions/15951/hyperlink-name-with-biblatex-authoryear-biblatex-1-4b (and in particular the images that you've pasted in your respective answers, illustrating the different cases).
Perhaps my framing of the initial issue was misleading. And perhaps your imaged examples don't get it right, and that's what you are pointing to.
As an in-principle matter I do agree that the lowest common denominator in-text citation for a work will entail the hyperlinking the year (or shorthand, title, shorttitle etc). That would, make ...
... the way to go (which is at odds with some of your examples).
However, the most common case will be a bracketed author-year combinations, in that case ...
... would be the way to go (consistent with your examples).
The idea, of course, is to hyperlink that part of the string which identifies the work, not the author as such.
Would the following (conceptual) algorithm cover all possible cases in-principle?
That would seem to result in a clean and consistent ...
Unless you can think of counter examples I don't think this is messy and inconsistent. At least, that is, not messy in a manner above the messiness of citations themselves (without any hyperlinking).
(Citation messiness arising out of what we want as writers, not in virtue of problems with biblatex. Biblatex does very well to cope with the variety of citations we want as writers - thanks in part to your hands on the code).
I raised two problems with this request: (1) the desired result leads to inconsistent, ambiguous links and (2) implementing the desired result is a mess.
To see (1), suppose that the links are not coloured or boxed. Where can one consistently anticipate the links in a given citation? Even with coloured or boxed links, consider compact labels. What is the target of the common part of the label? The answers are not obvious. The current behaviour solves all of these problems. PL deviated from natbib-like links, and I think his solution is better. So it should remain the only one offered by default.
To see (2), compare the default style implementation with the solutions I've posted (linked above). Links are applied at the style level. Changes to internals won't make this any easier.
Considering (1) and the fact that this is a style issue and you already have a solution, I closed the issue.
For the moment if we look only at ...
A. By ...
... you mean that neither your of Tex StackExchange answers:
... are superior to the default style implementations. That is, your Tex StackExchange answers illustrate the "mess".
... as expressed in the Tex StackExchange comments for the authoryear-comp style ...
B. Therefore my prior speculation that ...
... bears out.
C. My claim in my original post that ...
... is false. You mean your TexStackExchange code results in, and so illustrates, messy (inconsistent and ambiguous) cases. That is, the cases are quite far from perfection.
D. Your "solution" in "you already have a solution" (from the post above) means to reference:
Are A, B, C, & D all true?