This seems like a very common practice, but an hour of researching the question has gotten me nowhere. Is it not possible to insert the URI for the call to \href (#1) as a footnote?
I've tried defining a new command like so:
\newcommand{\fref}[2]{\href{#1}{#2}\footnote{\url{#1}}}
but the footnotetext is never produced.
A minimal example, if there must be one:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
Hi! \href{http://www.ctan.org}{CTAN} is a pretty cool place.
\end{document}
Desired output:
Hi! CTAN[1] is a pretty cool place.
[1]: http://www.ctan.org
\renewcommand{\href}[2]{\oldhref{#1}{#2}\footnote{\protect\url{#1}}}doesn't work. Thanks for the idea, though.\ – Sean Allred May 22 '13 at 02:35\hrefby\fref:) – Xavier May 22 '13 at 05:13