I have a .tex file which works perfectly fine when I run it in my PC using TeXmaker.

It has the following styles and preamble:

\documentclass{aa} % Astronomy & Astrophysics journal style


\usepackage{grffile} % FOR EXTENSIONS
\usepackage{microtype} % to avoid lines going outside margin

\floatsetup[table]{capposition=top} %caption on top of table

For the bibliography, I am using the style:

\bibliographystyle{aa} % The Astronomy & Astrophysics style, aa.bst

When I upload my files in arxiv.org and process it (tried it both WITH AND WITHOUT THE aa.bst file), I get an error that says:

! Undefined control sequence.
l.154 ...of state are dramatically improved \citep
! Emergency stop.
l.154 ...of state are dramatically improved \citep
! ==> Fatal error occurred, no output PDF file produced!

The problem seems to be with the usage of \citep{}. I don't know why arxiv does not recognise this natbib style of citation.

Do I need to change the bibliography style or do I need to do something else?

  • Not familiar with the aa class, but seems to me you answered your own question: \citep comes from the natbib package, so you need to load that. – Torbjørn T. Dec 8 '16 at 11:45
  • @TorbjørnT.: When I \usepackage{natbib} with the current class, it somehow says that there is a package clash! – ThePredator Dec 8 '16 at 11:48
  • @TorbjørnT.: As I have mentioned, \citep{} and \citet{} as I am using works in my PC with TeXmaker. The same .tex file is being complained when I process in arxiv.org – ThePredator Dec 8 '16 at 11:49
  • Yeah, sorry, didn't really catch that part. My naive guess would be that the version of aa.cls that you have is different from the one arxiv has. The first hit on google led to a class that does not load natbib, so if your version of aa.cls does load natbib, it's a different one. Edit: Where did you get the class file? – Torbjørn T. Dec 8 '16 at 11:50
  • 1
    When you added \usepackage{natbib} before uploading? I find that hard to believe, and I've also run out of suggestions, so I think I'll leave this to someone who's more familiar with the quirks of arxiv. – Torbjørn T. Dec 8 '16 at 12:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.