Add a hyperlink in Overleaf.
Load the hyperref package in your preamble, then use \href{url}{text} to make words clickable or \url{url} to show the web address. This works the same in Texeno, Overleaf and any standard LaTeX compiler.
The short answer: put \usepackage{hyperref} in your preamble, then write \href{https://example.com}{link text} for a custom label or \url{https://example.com} to display the raw address.
Three steps to add a link
Setting up hyperlinks takes two lines of setup and a simple command where the link should appear.
First, add the package to the preamble of your document before \begin{document}.
Second, choose the command that fits your layout: \href for hidden links behind text, or \url to display the address itself.
Third, recompile your project to generate the clickable PDF.
Code examples for every link type
Link behind custom text
Use \href to hide the URL behind a word or sentence. The reader sees the text you chose and clicks it to open the destination.
\documentclass{article} \usepackage{hyperref} \begin{document} Read the guide on \href{https://texeno.com}{Texeno} for details. \end{document}Display the raw URL
Use \url when the reader needs to see the full web address, which is helpful if the document is printed on paper later.
\documentclass{article} \usepackage{hyperref} \begin{document} Visit our site at \url{https://texeno.com}. \end{document}Make an email address clickable
Prepend mailto: to the address inside an \href command so clicking it opens the reader's default email application.
\documentclass{article} \usepackage{hyperref} \begin{document} Contact us at \href{mailto:[email protected]}{[email protected]}. \end{document}
Removing coloured boxes and changing link styles
By default, LaTeX wraps links in coloured rectangles. These boxes help you see links while editing, but they do not appear when the document is printed.
If you prefer coloured text instead of boxes, configure the package using \hypersetup in your preamble. Set colorlinks to true and pick your preferred colours for internal links, citations and URLs.
Questions
Where should I place \usepackage{hyperref}?
Put it in your preamble before \begin{document}. As a rule, hyperref should be loaded last among your package imports to prevent conflicts with geometry, cleveref or other formatting packages.
Why do my links have ugly coloured boxes around them?
That is LaTeX's default way of marking interactive areas. Add \hypersetup{colorlinks=true, urlcolor=blue} to your preamble to turn the boxes into coloured text instead.
Can I link to local files instead of websites?
Yes. Use \href{run:./appendix.pdf}{Appendix} to link to a file in your project folder. Make sure the file path uses forward slashes.
Try your own paper in Texeno.
Start free, upload a project as a .zip and press Recompile. Upgrade when you need longer compiles.
Start writing