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.

My document has several \href that I would like to be shown on the footnote. How can I do it?

share|improve this question
    

1 Answer 1

up vote 17 down vote accepted

I usually write something like this, so the entry is hyperlinked for onscreen reading but there's also a footnote to the URL for paper output.

\documentclass{article}
\usepackage{hyperref}
\newcommand\fnurl[2]{%
  \href{#2}{#1}\footnote{\url{#2}}%
}
\begin{document}
hello \fnurl{Google}{www.google.com}
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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