TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I have both boxed and color links in the same document? I know I can use \usepackage[colorlinks]{hyperref} and have colored links instead of boxes, but how do I have both in the same document. The MWE below yields:

enter image description here


  • This is intended for use only in the review version of the document where I want to be able to distinguish different types of links. In the final version there will be a single style.



\href{www.google.com}{The Google} 

\hypersetup{colorlinks=true, urlcolor=blue}
\href{www.google.com}{The Google} 

\href{www.google.com}{The Google} 
share|improve this question
Related Question: How can I have colored and underlined links with hyperref?. – Peter Grill Jun 23 '13 at 21:35
up vote 4 down vote accepted

If colorlinks is activated, then the color can be disabled by using the current color . that is provided by package xcolor. The setting for pdfborder enables or disables the annotation frame:


  \hypersetup{pdfborder={0 0 1}, urlcolor=.}%

\href{www.google.com}{The Google}

\hypersetup{pdfborder={0 0 0}, urlcolor=blue}
\href{www.google.com}{The Google}

\hypersetup{pdfborder={0 0 1}, urlcolor=.}
\href{www.google.com}{The Google}

\textcolor{red}{\href{www.google.com}{The Google}}


share|improve this answer

Your Answer


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.