+1 vote
in General IT Tips by (14.2k points)

I am getting the following warning message in my latex document. How to fix this warning message:

Package hyperref Warning: Unexpected value for option hidelinks' is ignored on input line: \hypersetup{hidelinks=true}

1 Answer

+3 votes
by (86.3k points)
selected by
 
Best answer

The warning message suggests that the 'hyperref' package is not recognizing "hidelinks=true" as a valid option. The hidelinks option does not take any value (true or false). It should be specified as a standalone option without =.

Here is an example:

\documentclass{article}

\usepackage[hidelinks]{hyperref}

\begin{document}

\title{Sample Document}

\author{Author Name}

\date{\today}

\maketitle

\section{Introduction}

This is a sample document with hyperref links hidden.

\end{document}


...