1

This question already has an answer here:

I want to have url's with no background, but still a distinctive color so as to indicate that they are clickable. I am defining

   \documentclass[line, margin]{res}
\usepackage[hidelinks]{hyperref}
\hypersetup{
linkcolor=red,
citecolor=green,
filecolor=magenta,
urlcolor=cyan
}
\begin{document}
\name{Myname}
\address{address...} 
\begin{resume}

\href{http://example.com}{Text}

\end{resume}
\end{document}

Res file can be found here: link

marked as duplicate by LaRiFaRi, user13907, ChrisS, Jesse, Svend Tveskæg Oct 10 '14 at 10:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    (1) always post full minumal examples, we cannot see your document class. (2) might it be related to hidelinks? – daleif Oct 10 '14 at 8:57
  • Just tested and it is related to hidelinks. I gather that the colors are related to the links, not the text. – daleif Oct 10 '14 at 8:59
  • @daleif I have posted a full minimal example. – yayu Oct 10 '14 at 9:06
  • See Andrews answer, adding colorlinks also works. The standard frame around the text is associated to the links which you have hidden. Also remember that as Andrew mentions, res is not a generally known class, so the MWE isn't that usable. – daleif Oct 10 '14 at 9:51
3

I'm not sure what res.cls is...I guess that it is your own non-standard class file (oh, just saw the link in the OP's post...).

In any case, you just need to set colorlinks=true in hypersetup:

\hypersetup{
colorlinks=true,
linkcolor=red,
citecolor=green,
filecolor=magenta,
urlcolor=cyan
}

With this your MWE gives (after replacing the res document class with report and ignoring your \name macro...):

enter image description here

  • that was right! – yayu Oct 10 '14 at 9:50

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