Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Consider the following two MEWs:

\documentclass{article}
\usepackage[colorlinks=false,pdfborder={0 0 0}]{hyperref}
\begin{document}
Click \href{http://www.latex-project.org/}{here} to go to the webpage.
\end{document}

and

\documentclass{article}
\usepackage[hidelinks]{hyperref}
\begin{document}
Click \href{http://www.latex-project.org/}{here} to go to the webpage.
\end{document}

Question

Are the two MEWs equivalent, i.e., are the any difference between [colorlinks=false,pdfborder={0 0 0}] and [hidelinks] as options to hyperref? If there are differences, what are they?

share|improve this question
    
Note the option hidelinks is relatively new. I guess, in reaction to user requests. –  Speravir Mar 17 '13 at 0:03
add comment

1 Answer

up vote 9 down vote accepted

The relevant definition of hidelinks is

 \DeclareVoidOption{hidelinks}{%
 \Hy@colorlinksfalse
 \Hy@ocgcolorlinksfalse
 \Hy@frenchlinksfalse
 \def\Hy@colorlink##1{\begingroup}%
 \def\Hy@endcolorlink{\endgroup}%
 \def\@pdfborder{0 0 0}%
 \let\@pdfborderstyle\ltx@empty
 }

which tells us that hidelinks is equivalent to the combination of colorlinks=false and pdfborder={0 0 0}. Setting also the border style to \ltx@empty is somewhat superfluous here, as there will be no border.

share|improve this answer
    
Great answer; thank you. –  Svend Tveskæg Mar 16 '13 at 10:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.