Commit acd3936e authored by Dorchies David's avatar Dorchies David
Browse files

Correction lien hypertexte des références (nom, date)

parent b7f5ce7b
No related merge requests found
Showing with 52 additions and 12 deletions
+52 -12
% Gestion de la bibliographie avec biblatex
\usepackage[
backend=bibtex,
style=authoryear,
firstinits=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}}}
\ No newline at end of file
...@@ -21,18 +21,7 @@ ...@@ -21,18 +21,7 @@
\renewcommand{\mkbegdispquote}[2]{\itshape} \renewcommand{\mkbegdispquote}[2]{\itshape}
% Gestion de la bibliographie avec biblatex % Gestion de la bibliographie avec biblatex
\usepackage[ \input{rapport_francais/preambule_biblatex}
backend=bibtex,
style=authoryear,
firstinits=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}
% Extra space for numbered titles in table of contents % Extra space for numbered titles in table of contents
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment