FormaTeX
WarningFiles & Resources

Hyperref: Hyper Reference Undefined

Package hyperref Warning: Hyper reference '...' on page N undefined.

What this error means

The hyperref package found a \hyperref[key]{text} or \autoref{key} reference to an anchor that doesn't exist in the document. The link will point nowhere in the PDF.

Common causes

  • Using \hyperref[key]{} with a key that has no matching \label{key}
  • Cross-referencing a label in a chapter excluded with \includeonly{}
  • Labels in \input files that were not processed in the current run
  • Compiling only once without allowing cross-references to resolve

How to fix it

Ensure every \hyperref[key]{} or \autoref{key} has a matching \label{key} in the document. Compile twice to resolve cross-references. Check that no \includeonly{} is excluding the file with the label.

Code examples

Causes the error
\documentclass{article}
\usepackage{hyperref}
\begin{document}

See \autoref{fig:result} for the result.
% But there is no \label{fig:result} anywhere!

\end{document}
Fixed
\documentclass{article}
\usepackage{hyperref}
\begin{document}

\begin{figure}[h]
  \centering
  % ... figure content ...
  \caption{Results}\label{fig:result}
\end{figure}

See \autoref{fig:result} for the result.

\end{document}

Related errors

Test the fix live

Paste your LaTeX into the playground and compile instantly.

Una cosa rápida

Registramos el uso anónimo — visitas a páginas, uso de funciones, eventos de compilación — para entender qué funciona y qué no. Sin publicidad, sin datos personales, sin compartir con terceros.

Política de cookies