From f83e8b39df08ea9e9ca130a4578c749d48d55844 Mon Sep 17 00:00:00 2001
From: Sébastien Dailly <sebastien@chimrod.com>
Date: Sat, 10 Aug 2019 20:36:56 +0200
Subject: First commit

---
 model_1/resources/90_ref.tex | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100755 model_1/resources/90_ref.tex

(limited to 'model_1/resources/90_ref.tex')

diff --git a/model_1/resources/90_ref.tex b/model_1/resources/90_ref.tex
new file mode 100755
index 0000000..96edd79
--- /dev/null
+++ b/model_1/resources/90_ref.tex
@@ -0,0 +1,35 @@
+\usepackage[
+    pdfencoding=auto,
+    linkbordercolor={0.5 0 0},
+    citebordercolor={0 0 0.5},
+    urlbordercolor=textsidecolor,
+    pdfborderstyle={/S/U/W 1}
+]{hyperref}
+
+% Remove the underline for the footnotes
+\providecommand*{\DUfootnotemark}[3]{%
+  \hypersetup{pdfborderstyle={/W 0}}%
+  \raisebox{1em}{\hypertarget{#1}{}}%
+  \hyperlink{#2}{\textsuperscript{#3}}%
+  \hypersetup{pdfborderstyle={/S/U/W 1}}%
+}
+
+\providecommand{\DUfootnotetext}[4]{%
+  \begingroup%
+  \renewcommand{\thefootnote}{%
+    \protect\hypersetup{pdfborderstyle={/W 0}}%
+    \protect\raisebox{1em}{\protect\hypertarget{#1}{}}%
+    \protect\hyperlink{#2}{#3}
+    \protect\hypersetup{pdfborderstyle={/S/U/W 1}}%
+  }%
+  \footnotetext{#4}%
+  \endgroup%
+}
+
+\let\tableofcontentsWithoutRefMarks\tableofcontents
+
+\renewcommand{\tableofcontents}{%
+    \protect\hypersetup{pdfborderstyle={/W 0}}%
+    \tableofcontentsWithoutRefMarks
+    \protect\hypersetup{pdfborderstyle={/S/U/W 1}}%
+}
-- 
cgit v1.2.3

