I'd like to insert a URL into this document. Is there a "correct" way of doing that? If so, is there a way to turn it into a link inside the final pdf generated with pdfTeX or XeTeX?

  • Seems like a duplicate
    – TH.
    Commented Sep 29, 2010 at 5:49
  • @TH: Close enough to a distinct question that I'm okay with it, even if the answer is similar. The other question is more about internal links; this question is more about typesetting URLs in general. Commented Sep 29, 2010 at 6:00

2 Answers 2


I thought this was a duplicate but I think I was thinking of email addresses. URLs are simple:


Colours can be changed by setting up hyperref as desired:

  colorlinks, linkcolor=red

If you're not using hyperref then load the url package:


but you won't get hyperlinks, of course.




so that when you press on the word Google you get connected to Google's site.

Here is what you should put in the preamble:


This should be placed as is at the bottom of the list of added packages.

  • 6
    Why not \usepackage[colorlinks,citecolor=DeepPink4,linkcolor=DarkRed, urlcolor=DarkBlue]{hyperref}? And what is cleveref for here?
    – TH.
    Commented Sep 29, 2010 at 5:48
  • 2
    maybe also something like \usepackage[svgnames]{xcolor} (before \hypersetup) to access the named colours Commented Sep 29, 2010 at 10:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .