-
Notifications
You must be signed in to change notification settings - Fork 114
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
Option to include author as part of hyperlink with authoryear style #1024
Comments
See also #428. The thing is that if you want to pull off a large continuous link target with a consistent output across styles and citation commands, things are going to be difficult. If you look at the answer https://tex.stackexchange.com/a/27107/35864 you linked, you'll see that the link target in It is more realistic to produce several small link targets. But then I feel the only reasonable course of action is to only link the author and the year (separately, mind you). That's what I've shown in https://tex.stackexchange.com/q/537426/35864. As always we have to consider the impact of such a change. Any change to often used and modified bibmacros (like the ones that would be involved here) has the potential to break people's preambles or styles. Plus everything that modifies the actual output would be problematic from a backwards compatibility point of view (changing link targets is probably not a big issue, but it should still be mentioned). |
Where you are using the word target, I assume you actually mean anchor; which is the region that is active for clicking the hyperlink. Although pdfTeX can break a hyperlink, it does so by internally creating 2 hyperlink anchors for the same target destination. This is fine, until you come to attempting valid tagged PDF, as will ultimately be needed with accessible formats. As this breaking action is taken at page shipout time, there is no way of knowing the object number of that 2nd anchor while processing LaTeX macros alone. The result is a Link object that is not included within the PDF's structure tree; hence validation will fail for modern accessible PDF/UA formats. The only way, so far, to deal with this is to manually recognise the places where this occurs, and do one of 2 things:
|
Based on the following TeX.SE post: https://tex.stackexchange.com/a/27107
Basically, in addition to the date I'd like for the author to be part of the hyperref that links to the bibliography. Additional (or all) citation parts and styles could also be considered.
There aren't comments or answers mentioning a native solution, so I'm assuming nothing's been implemented. PLK left a comment 4 years ago, so I'm curious as to why this hasn't been implemented. They mentioned the desire to make it default behavior, but if that's too much to ask, I'd settle for an option to set somewhere.
The text was updated successfully, but these errors were encountered: