LaTeX error: Option clash for package hyperref

hyperref is loaded twice:

\usepackage{hyperref}
\usepackage[...]{hyperref}

Just remove the first loading without options.

A package can be given several times in LaTeX, however, the options of the calls after the first \usepackage must be a subset of the options present in the first \usepackage call, because LaTeX does not actually input the .sty file more than one. (Otherwise each \newcommand, ... would cause errors, if called more than once.)


For Beamer users, notice that hyperref is loaded by default. You do not need to add it. In this sense, the problem is exactly the same as the one in the accepted answer (loading the package twice).

In case you want to pass arguments to hyperref, you can add them in the \documentclass command. For instance:

\documentclass[hyperref={colorlinks = true,linkcolor = blue}]{beamer}     

Please DO NOT believe this error message on arXiv. It appears even if the PDF is successfully built. Refer to the logs at the end of the post.

Instead, please check the rest parts of your TeX file.

You can follow the instructions below to locate your errors in TeX.

  • Create a minimal TeX file.
  • Add several lines to the TeX file.
  • Build a PDF after adding new lines.
  • Repeat the above two steps until arXiv gives an error message.
  • Try to locate the errors in the newly added lines.

Good luck.

arXiv Logs

Tags:

Hyperref