[Tex/LaTex] \hypersetup{colorlinks=false} draws no border around links

borderhyperreftufte

The sample book of tufte-latex gives no colored border around links when compiled with \hypersetup{colorlinks=false}. I checked that this is not a problem of the PDF viewer, so is unrelated to the other question. How to enable colored borders around links when using tufte-latex?

Best Answer

tufte-common.def sets

\hypersetup{%
  pdfborder = {0 0 0},
  bookmarksdepth = section,
  citecolor = DarkGreen,
  linkcolor = DarkBlue,
  urlcolor = DarkGreen,
}%

when hyperref is loaded.

So in order to get the borders back, we can just restore the default

\hypersetup{pdfborder = {0 0 1}}

See also What do the first two numbers in the pdfborder option of hyperref do?

MWE

\documentclass[nobib]{tufte-book}
\hypersetup{pdfborder = {0 0 1}}
\begin{document}
\url{http://www.example.com}
\end{document}

enter image description here

Related Question