TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to correctly format an article for Computers & Operations Research. They say I should use the "number" format to cite.

I use elsarticle.cls and the documentation says that number should be the standard option loaded. This does not seem to be the case as \cite{smth} outputs Author[1] and I don't want Author to be there.

When I use the option \documentclass[preprint,number,12pt]{elsarticle}

I get the error:

! Package natbib Error: Bibliography not compatible with author-year citations.

(natbib)                Press <return> to continue in numerical citation style.

See the natbib package documentation for explanation.
Type  H <return>  for immediate help.

l.191 ...and\NAT@force@numbers{}\NAT@force@numbers

I have tried many bibliographystyles, among which

Any suggestions?

Here is a stripped version of my document (I have kept my packages just in case there is a problem there)

%\usepackage{natbib} %use of natbib package, necessary for customized cmj BibTeX style
\usepackage{booktabs} %voor mooiere tabellekes

The pdf actually displays well now (except for the \citet commands, which display as "author error"). But compilation is aborted, so that should not happen.

And the .bib entry (there where about 50, but I just took one to test)

  title={Automatic music transcription as we know it today},
  author={Klapuri, A.P.},
  journal={Journal of New Music Research},
  publisher={Taylor \& Francis}

This is a link to the bst file I am using: https://www.dropbox.com/s/4jrnxb5twjwl9xm/elsarticle-num.bst

and elsarticle.cls https://www.dropbox.com/s/s6qgfbxyz57gci0/elsarticle.cls

share|improve this question
Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Jubobs Mar 21 '13 at 19:02
You are right, I have added the example – dorien Mar 21 '13 at 20:11
@dorien Without the .bib entry for klapuri2004automatic only conjectures can be made. – egreg Mar 21 '13 at 21:51
I hope it is more complete now. – dorien Mar 22 '13 at 8:59
up vote 5 down vote accepted

The elsarticle class already loads natbib with some option that you provide as class options. In your example, the class option number means numerical mode. Your MWE actually works fine, if you still get errors with that, remove the .bbl and .aux file first, then recompile afresh.

If you want to use \citet correctly, the bibliography style has to support that (the \bibitem has to have the right optional argument). You could replace elsarticle-num by elsarticle-harv, e.g.

share|improve this answer
This helped me a lot. Just to add my two cents, the way I make it work is by using \documentclass[authoryear]{elsarticle} at the top of my tex file and then, at the end of the file, \bibliographystyle{elsarticle-num-names} and \bibliography{references.bib}. Hope it helps. – David Jul 30 '15 at 17:00

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.