Here is a MWE:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
a
\end{document}
When I compile my document on the arxiv website, I get the following errors:
! LaTeX Error: Option clash for package hyperref.
...
l.6 \begin
{document}
?
! Emergency stop.
...
l.6 \begin
{document}
No pages of output.
Transcript written on arXivSubmission.log.
Seems bizarre that having a single package in the preamble causes an error.
Best Answer
When you use the document class
article
, arXiv additionally loads by defaultBabel
,hyperref
,hobsub-hyperref
,hobsub-generic
,keyval
,ifxetex
,kvoptions
,url
,rerunfilecheck
,nameref
, andgettitlestring
(all from thetexlive 2016
version).This means that, oddly enough, arXiv would compile without trouble the following document:
Even if it uses the
\url
macro without loading theurl
orhyperref
packages. Of course, if you try to compile this document on your installation, you would get an error:But arXiv processes it just fine, without throwing any error.
Hence, you have two options:
hyperref
package from your preamble. This is an odd solution, since you won't be able to compile your document on your installation, but it works, i.e., the document is compiled without throwing an error.EDIT
More help can be found at Arxiv's Considerations for TeX Submissions and at Common Mistakes that cause Automated Processing to Fail webpages. Also, reasons to submit the tex sources are listed at Why Submit the TeX/LaTeX Source?.
According to this source, starting 2017-02-09, ArXiV uses TeXLive 2016, after my answer was written, so I doubt it is in need of a modification.
EDIT
Still according to this source, starting 2020-10-01, ArXiV uses TeXLive 2020, so my answer may need some adjustments.