aboutsummaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-11-06 17:36:31 +0100
committern-peugnet <n.peugnet@free.fr>2021-11-06 17:36:31 +0100
commitb4e19b5fbee12741366bcdd41c32154eabf1ec25 (patch)
tree8b33c894da33b9d2485597afd50d3ccef347084c /pdf
parent815a22ac9fef705a55be58945c8b3396837f4518 (diff)
downloaddna-backup-b4e19b5fbee12741366bcdd41c32154eabf1ec25.tar.gz
dna-backup-b4e19b5fbee12741366bcdd41c32154eabf1ec25.zip
add backrefs and move hyperrefs as the last usepackage
Diffstat (limited to 'pdf')
-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