I want to insert a single URL that is clickable in the resulting PDF file I produce, but when I use the hyperref package, that turns every use of \ref, the table of contents, etc. into a hyperlink in the document. I just want the one URL to be a hyperlink. Any simple solutions?


hyperref provides a hyper-link-less referencing through \ref* rather than \ref. On a case-by-case basis you can use use this. Or, a global alternative could be

enter image description here

\usepackage{hyperref}% http://ctan.org/pkg/hyperref
\section{A section}\label{one} This is section~\ref{one}. \url{http://tex.stackexchange.com}
\section{Another section}\label{two} This is section~\ref{two}.

The redefinition of \ref to \ref* is delayed until \AtBeginDocument.


Does this help?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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