First I just ignored the hyperref package and just wanted something that 'looked' like a link:

\underline{\color{Blue} http://soundcloud.com}

but I end up getting an underline about 3mm below the link, which looks extremely ugly. After loading hyperref, I messed about with the variables but there is no underline feature. The best I could do was get it in blue:


Question: Can I get a blue, underlined link so that the line is directly underneath the text (with or without an actual hotlink)?

  • 1
    I think my answer to Url with fragments in bold should answer that. I also show underlined and colored URLs there (but not both in combination yet). Jul 16, 2011 at 15:40
  • 4
    Note that \underline is AFAIK thought for mathematic expressions only, which might explain the odd look for "normal" text. To underline text see the soul or ulem packages. Jul 16, 2011 at 15:55
  • 4
    The (under)line is moved down because of the fact that the characters stretch below the baseline. If you want a tighter underline, \smash the argument: \underline{\color{Blue}\smash{http://soundcloud.com}}. Does this work?
    – Werner
    Jul 16, 2011 at 16:08
  • Here, you can access the documentation for the ulem package: mirror.math.ku.edu/tex-archive/macros/latex/contrib/ulem/…
    – night owl
    Aug 14, 2011 at 6:17

3 Answers 3


If you don't use hyperref:






If you use hyperref, you may want to click on the URLs:

%% or
% \hypersetup{colorlinks=false,pdfborder=000}

% hack into hyperref




my solution to this


\section{To See}\label{tosee}
hello refer ~\ref{tosee}
\href{www.google.com}{\color{blue} \myul[blue] {GOOGLE}}

Here a adaption of my solution for Url with fragments in bold. The result it look nice to me. However the URL isn't a hyperlink anymore, i.e. I can't click on it.


%% works with `url` only as well:




\url{http://www.example.com/blue%^&&*}  % for comparision




Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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