% Gestion de la bibliographie avec biblatex \usepackage[ backend=bibtex, style=authoryear, uniquename=init, giveninits=true, natbib=true ]{biblatex} \addbibresource{biblio.bib} %Line breaks of long URLs in biblatex bibliography http://tex.stackexchange.com/a/134281 \setcounter{biburllcpenalty}{7000} \setcounter{biburlucpenalty}{8000} % Line break for DOI http://tex.stackexchange.com/a/50958/124910 \setcounter{biburlnumpenalty}{100} % hyperlink name with biblatex authoryear % https://tex.stackexchange.com/a/27107/124910 \DeclareFieldFormat{citehyperref}{% \DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links \bibhyperref{#1}} \DeclareFieldFormat{textcitehyperref}{% \DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links \bibhyperref{% #1% \ifbool{cbx:parens} {\bibcloseparen\global\boolfalse{cbx:parens}} {}}} \savebibmacro{cite} \savebibmacro{textcite} \renewbibmacro*{cite}{% \printtext[citehyperref]{% \restorebibmacro{cite}% \usebibmacro{cite}}} \renewbibmacro*{textcite}{% \ifboolexpr{ ( not test {\iffieldundef{prenote}} and test {\ifnumequal{\value{citecount}}{1}} ) or ( not test {\iffieldundef{postnote}} and test {\ifnumequal{\value{citecount}}{\value{citetotal}}} ) } {\DeclareFieldAlias{textcitehyperref}{noformat}} {}% \printtext[textcitehyperref]{% \restorebibmacro{textcite}% \usebibmacro{textcite}}}