I'm using the elsearticle
class. At present the links (citations, equation references, etc) are put in coloured boxes and I'd rather have the links coloured without boxes. So I tried putting
\usepackage{hyperref}
\usepackage[hyperref]{xcolor}
\hypersetup{
colorlinks = true, %Colours links instead of ugly boxes
urlcolor = red, %Colour for external hyperlinks
linkcolor = red, %Colour of internal links
citecolor = red %Colour of citations
}
But this doesn't work, it turns the boxes off but turns the colour of all the links to blue. How can I make it work?
Best Answer
The class does
so you need to override this:
Or shorter, doing
colorlinks=true
in the preamble and the change for colorsin the body of the document:
The result, showing red colorized links: