I'm using ModernCV to create my CV and I've spent a long time playing around with link styles. I find coloured links to stand out too much or clash with other colours on the page, and the standard underline to be too strong, especially under headings or bold text.
The solution I've landed on is to underline all links with a lightgray
underline. This is just subtle enough and works well throughout the document.
I understand the default solution is supposed to be to configure the outline settings in the hypersetup
, but I have never got this to work. If I set pdfborder
to anything other than 0 0 0
I'll always get horrible boxes around links that I can't configure.
The main package I've found that allows you to control the colour of underlines is soul, with the \setulcolor
command to customise soul's custom \ul
command. The main problem I had with that was that whenever I tried to use that in conjunction with a hyperlink I got an error about too many }
s that I couldn't explain.
How can I successfully set the link underline to lightgray
?