Commit dda8579b authored by Olivier's avatar Olivier

Fix hyperlink problems in indexes and footnotes

* Calling package bookmark before package hyperref implicitly loaded
  option hyperfootnote=yes for hyperref, and so the (systematically
  broken) footnote links could not be deactivated

* Calling package index prevented hyperref from building links
  (hyperpage links) in the index page numbers
parent 192690ce
......@@ -20,6 +20,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Misc useful
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[hyperfootnotes=false]{hyperref} % Enables links (including internal links). Options are specified by \hypersetup{}, which needs to be called very late. Option hyperfoonotes is to disable links in footnote numbers, which are broken anyway (this one option needs to be specified very early). Hyperref is implicitly loaded by package bookmark, so must be called before it to avoid option clash.
\usepackage[openlevel=3,open,numbered]{bookmark} % Configures table of contents in PDF bookmarks
\usepackage{comment} % Comment out entire code sections with \begin{comment}, \end{comment}
\usepackage{tabto} % Emulate "Tab" key with \tab
......@@ -27,7 +28,6 @@
\usepackage[gen]{eurosym} % Use euro symbol with \euro{}
\usepackage{ifthen} % Enables use of conditional commands
\usepackage{xspace} % Enables the command \xspace (trailing space sensitive to whether character that follows is punctuation or not)
\usepackage{hyperref} % Enables links (including internal links). Options are specified by \hypersetup{}, which needs to be called very late.
\usepackage{framed} % (legacy) Enables framed boxes (such as the "anexample" environment)
\usepackage[framemethod=TikZ,needspace=3cm]{mdframed} % Better framed boxes than framed
\usepackage{setspace} % Enables control of linespacing with \spacing{0.9}{content}
......
......@@ -410,7 +410,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{makeidx}
\usepackage{index}
\usepackage{multicol} % Needed so we can split index in two columns
\makeatletter
\renewenvironment{theindex}% Half-voodoo stuff to make index look "right"
......
Markdown is supported
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