# How to make clickable links in LaTeX

Adding clickable links to LaTeX documents is very straightforward, you only have to add the hyperref package to your preamble. This package allows you to set links with a description as well as add bare urls to your document (News! For more details I have created Advanced LaTeX Cross-references).

% ...
\documentclass{article} % or any other documentclass

%...

\usepackage{hyperref}

%...

\begin{document}

%...

\end{document}


After setting this up, you’re ready to go and add links anywhere to your document. In order to add a link with a description (i.e. making a word clickable), you should use the href command like so:

%...

\begin{document}

\end{document}


You will notice, that there’s a colored box shown around the word. Don’t worry, this box is not going to show up in your printed document, but only if you view it on your computer.

If you simply want to embed a bare URL, you should use the url command instead, which usage is even simpler:

%...

\begin{document}

You can also link to bare URLs without an additional description: \url{http://www.latex-tutorial.com}

\end{document}


%...

\begin{document}

\end{document}


Usually, using the default settings and color etc are just fine, but these can also be customized if you want to. This can be done using the hypersetup command in your preamble. Since I’ve never used this feature in any document, I won’t explain how to use it, but you can find a more detailed documentation of the hyperref package here, if you’re curious.