Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
How does one insert a URL correctly?

I'm writing up a document, and at one point I cite a file online found at http://www.math.uconn.edu/~kconrad/blurbs/grouptheory/groupsp3.pdf

I made a footnote with \footnote{http://www.math.uconn.edu/\textasciitilde kconrad/blurbs/grouptheory/groupsp3.pdf}

I had to find an alternative for the ~ since it would not show up in the final document. This works fine when copy+pasting to a web browser, but is it possible to just link to the page from the pdf by clicking on the footnote?

P.S. If there's a better fix to the ~ issue, I'd be glad to see that as well.

share|improve this question
    
add comment

marked as duplicate by Matthew Leingang, Jake, Lev Bishop, lockstep, Joseph Wright Sep 15 '11 at 19:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

up vote 8 down vote accepted

You could use \href from the hyperref package:

\documentclass{article}
\usepackage{hyperref}

\begin{document}

\footnote{\href{http://www.math.uconn.edu/~kconrad/blurbs/grouptheory/groupsp3.pdf}{groups}}


\end{document}
share|improve this answer
    
Thanks Gonzalo, just implemented it and it worked great. –  yunone Sep 14 '11 at 21:57
add comment

You could use either the \url or \href commands from hyperref package.

\documentclass{article}
\usepackage{hyperref}
\begin{document}
  \footnote{\url{http://www.math.uconn.edu/~kconrad/blurbs/grouptheory/groupsp3.pdf}}
  \footnote{\href{http://www.math.uconn.edu/~kconrad/blurbs/grouptheory/groupsp3.pdf}{Text printed}}
\end{document}

\url prints the URL with \textt style fonts. \href prints the text that follows the URL. Note that on a printed copy of you article the real URL will not be visible.

share|improve this answer
1  
I think this also needs \usepackage{hyperref}. –  Peter Grill Sep 15 '11 at 12:04
    
Yes. I just changed the import. –  YMomb Sep 18 '11 at 9:18
add comment

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