Possible Duplicate:
Remove ugly borders around clickable crossreferences and hyperlinks

I want to generate a pdf from latex with hyperlinking text - i.e. when some part of text in the pdf is clicked, the associated URL should be opened.

I know that this could be done by \href{webpage address}{(My Text)} but this generates a blue box around the text. I don't want to see the blue box around, just when the user moves the mouse cursor over it, I want to show the hand cursor - and then the user can click to visit the link.

How can this be done?

  • 1
    Have a look at this question. – lockstep Feb 21 '11 at 20:24
  • BTW, welcome to tex.sx! – lockstep Feb 21 '11 at 20:39
  • I've removed the introduction from your question (it's preferred not to have introductions and greetings in the questions). I have also formatted your code as inline code, which you can do by enclosing it in backticks. – Jake Feb 21 '11 at 20:59
| improve this answer | |
  • 3
    Ha, that's excellent! I had to update my hyperref for this to work (seems it was only added in the latest version). You should post this on the question lockstep linked to in his comment. – Jake Feb 21 '11 at 20:51
  • 1
    Congratulations -- this is the first time I upvoted an answer to a question I had already voted to close. (And hidelinks will make it into my personal preamble.) – lockstep Feb 21 '11 at 21:05
  • @meep.meeo : Thank you, meep - concise and perfect solution. – bikashg Feb 22 '11 at 9:13

Another option, to customize it, is:

\usepackage[bookmarks=true,pdfborder={0 0 0}]{hyperref}

This way you can customize the color and the borders.

| improve this answer | |
  • Extending Weslei's beautiful answer, I am using this: \usepackage[colorlinks=true ,urlcolor=blue,urlbordercolor={0 1 1}]{hyperref} – gsamaras Feb 1 '16 at 20:32

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