Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

If anyone has come across this issue when dealing with uploading tex files on arxiv, their experience would be of immense help:

I am trying to upload a .tex document to arxiv. I upload my .tex file and my .eps figures and .bbl as requested.

When I process my files no pages of output are produced because of an

! LaTeX Error: Option clash for package hyperref.

Now, how do I deal with this? How exactly/with what package must I use \PassOptionsToPackage{...} or \RequirePackage{...} as done here?

My preamble is:

\usepackage[super,comma,sort&compress]{natbib} % enhances bibtex citations
\usepackage[T1]{fontenc} %Useful for file names with underscores in them
\newcommand{\hilight}[1]{\colorbox{yellow}{#1}} %To highlight text
\renewcommand{\thefootnote}{\alph{footnote}} %For footnotes

Log file generated by arxiv is available here on pastebin


I edited my latex file and removed \usepackage{hyperref}. This definitely got rid of the ! LaTeX Error: Option clash for package hyperref. message but now the arXiv TeX compiler gives me a fatal error after several package natbib warnings for all the references.

Do I have a problem with natbib only?

share|improve this question
your shown code can't produce this kind of error message. Create a complete example, which shows the error. – Herbert Jun 11 '13 at 15:26
@Herbert That is the problem. when I run latex on my .tex file: no errors, no grief! However when I upload my latex file to arxiv: all kinds of errors! Will try to put together a minimum working example but I daresay this might be an arxiv related issue. – drN Jun 11 '13 at 15:32
@drN: Then do not load hyperref. I suppose it is done by the documentclass or something else. – Herbert Jun 11 '13 at 15:34
@Herbert Yes. I am modifying my document to work without hyperref. Lets see what transpires! – drN Jun 11 '13 at 15:46
drN, if you have found an answer to your question then by all means post it as an answer! – Scott H. Jun 11 '13 at 19:24

1 Answer 1

I had to contact the folks at arXiv and they asked me to include authblk.sty setspace.sty, subfig.sty, caption.sty, caption2.sty, caption3.sty, babel.sty with my .tex document and eps figures and .bbl file.

Apparently these style files are the only packages that might be mixed versions from what we're running in our environment.

This sorted everything out and I have a submission on arXiv now!

share|improve this answer
Where do I find all these style files? – Erel Segal-Halevi Oct 12 at 6:57
@ErelSegal-Halevi On Linux, you can use locate caption.sty to find /usr/local/texlive/2015/texmf-dist/tex/latex/caption/caption.sty. – moose 2 days ago

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.