Skip to content

Problems with the hyperref package #188

Description

@klakomuc

Since updating to TeX Live 2026, there have been issues with the hyperref package. It appears that when using \autoref, references in the body text are incorrectly labeled and numbered.

Minimal example:

\documentclass{tufte-book}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage[demo]{graphicx}
\usepackage{hyperref}
\hypersetup{colorlinks=true, linkcolor=red}

\begin{document}

\section{Section One}
\lipsum[1][1] \autoref{latex-figure-1} \lipsum[1][2]

\section{Section Two}
\lipsum[2][1] \autoref{latex-table-2} \lipsum[2][2]

\begin{table}[!h]
  \begin{tabular}{lll}
    1 & foo & bar \\
    2 & baz & . \\
  \end{tabular}
  \caption{\LaTeX-table 1}
  \label{latex-table-1}
\end{table}

\begin{figure}[!h]
  \includegraphics[width=4cm, height=3cm]{latex-1.png}
  \caption{\LaTeX-figure 1}
  \label{latex-figure-1}
\end{figure}

\subsection{Subsection One-one}
\lipsum[3][1] \autoref{latex-figure-2} \lipsum[3][2]

\begin{table}[!h]
  \begin{tabular}{lll}
    1 & foo & bar \\
    2 & baz & . \\
  \end{tabular}
  \caption{\LaTeX-table 2}
  \label{latex-table-2}
\end{table}

\subsection{Subsection One-two}
\lipsum[4][1] \autoref{latex-table-1} \lipsum[4][2]

\begin{figure}[!h]
\includegraphics[width=4cm, height=3cm]{latex-2.png}
\caption{\LaTeX-figure 2}
\label{latex-figure-2}
\end{figure}

\end{document}

Output of the minimal example:

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions