aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pdf/.gitignore1
-rw-r--r--pdf/doc.tex24
2 files changed, 20 insertions, 5 deletions
diff --git a/pdf/.gitignore b/pdf/.gitignore
index fe5f12a..2d56f3b 100644
--- a/pdf/.gitignore
+++ b/pdf/.gitignore
@@ -9,6 +9,7 @@
*.pdf
*.synctex.gz
*.toc
+*.brf
# Assets
!assets/*.pdf
diff --git a/pdf/doc.tex b/pdf/doc.tex
index cf68fd7..fff6414 100644
--- a/pdf/doc.tex
+++ b/pdf/doc.tex
@@ -35,11 +35,6 @@
emphstyle=\color{identifier}, % sets color for comments
}
-% Hyperlinks
-\usepackage{xurl} % allow word break for url wrapping
-\usepackage[hidelinks]{hyperref} % create invisible clickable links
-\usepackage{doi} % add links to doi urls
-
% Appendices
\usepackage{appendix}
\renewcommand{\appendixname}{Annexe}
@@ -71,6 +66,25 @@
% Acronyms
\usepackage[printonlyused,footnote]{acronym}
+% Hyperlinks
+\usepackage{xurl} % allow word break for url wrapping
+\usepackage[
+ hidelinks, % invisible links
+ pagebackref=true % linkback to citations from bibliography
+]{hyperref} % create clickable links
+\usepackage{doi} % add links to doi urls
+
+% Backrefs in the bibliography for french
+\renewcommand{\backrefalt}[4]{
+\ifcase #1 {}
+ \or \emph{Cité page #2}
+ \else \emph{Cité pages #2}
+\fi
+}
+% Backref separators for french
+\renewcommand{\backreftwosep}{ et~}
+\renewcommand{\backreflastsep}{, et~}
+
% Style
\setlength{\parskip}{.3em} % space between paragraphs