How to add clickable hyperlinks and email addresses in LaTeX

Hyperlinks can be added to a LaTeX document by using the commands from the hyperref package:

\documentclass[a4paper] \usepackage % Package for hyperlinks \begin \href\\ % Text to URL \url\\ % Text is URL \href % Email \end

Note that the URL is displayed in a fixed-width font. This is the default font used for the \url command. If you want the URL to be displayed in the same font as that used for the rest of the document, use the \urlstyle command as follows:

\documentclass[a4paper] \usepackage % Package for hyperlinks \begin % Default URL font \url\\ % Set URL font to same as current text font \urlstyle \url\\ \end

© 2024 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon • 📧 Email