## LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ Why only the year is as a link in \cite reference

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
samfaith
Posts: 4
Joined: Mon Nov 17, 2014 12:44 am

### Why only the year is as a link in \cite reference

I have a problem in citing references with \cite, I have only the year as a link. I want to display the author and year as a single link. I don't know where the problem is?!

Johannes_B
Site Moderator
Posts: 4160
Joined: Thu Nov 01, 2012 4:08 pm
Hi and welcome, a look into the documentation reveals the following:
Refactored hyperref to only link from years to make it consistent across cite commands

So, this is by design.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

samfaith
Posts: 4
Joined: Mon Nov 17, 2014 12:44 am
Thanks for your repley, but I want to display the author and the year as a single link, any help please?
Last edited by samfaith on Wed Nov 19, 2014 9:22 am, edited 1 time in total.

Johannes_B
Site Moderator
Posts: 4160
Joined: Thu Nov 01, 2012 4:08 pm
You have to either enclose all ocurrences of any names in \printtext[bibhyperref]{}, which will simply add yet another link, or somehow try to enclose the whole string of the citation within \printtext[bibhyperref]{}.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

samfaith
Posts: 4
Joined: Mon Nov 17, 2014 12:44 am
I don't know how I use this command. I try to use it this :
\printtext[bibhyperref]{\cite {Li2001}}
But I have an error:
Undefined control sequence \printtext[bibhyperref]{\cite {Li2001}}

Any help please, I need the reponse to submit my paper?

Johannes_B
Site Moderator
Posts: 4160
Joined: Thu Nov 01, 2012 4:08 pm
I am not very experienced in modyfying biblatex styles. And i have to say, the effort isn't worth it. The author of biblatex-apa had some good reasons to do it the way it is (it was changed at a later point).

How are you submitting your paper? The chances are pretty high, that they will do stuff with your files anyway.

Modifying the style would take me hours, if your editor rejects the paper, because the expected style isn't applied, all my work would have been useless.

http://tex.stackexchange.com/q/213407/37907
http://tex.stackexchange.com/q/212495/37907
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.