Hyperref Package Doesn’t Make Colored Borders

hyperref

I'm writing latex code with overleaf and I want to make hyperlinks with the hyperref packages. From Googling, I learned that by default (or setting colorlinks=false) should make borders around the links. However, this doesn't work for me. Here is my code:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[colorlinks=false]{hyperref}
\usepackage{amsthm}

\title{Test}

\begin{document}

\newtheorem{theorem}{Theorem}

\maketitle

\section{Introduction}

\begin{theorem} \label{theorem1}
Famous theorem
\end{theorem}

\newpage

Using Theorem \ref{theorem1}.

\end{document}

Best Answer

It fully depends on the PDF viewer you are using. Some viewers show this border while some others don't.

This is when your document was viewed using Adobe Acrobat Reader and the box was visible. Adobe

And this is when your document was viewed using the Brave browser and the box disappeared. Brave

Also, if you print your document, this box won't get printed. If you want to highlight a link, I think it's better to use color or underline or both.

Related Question