Multiple citation in single square bracket and NATBIB error: Bibliography not compatible with author-year citations

October 27, 2010

I was writing a paper and found out that if I use multiple citations together they appear rather awkwardly in separate square brackets (e.g. [1], [2], [3]). What I wanted is to have them within one bracket and even better to be as a sequence. Solution to this is to use the NATBIB package and then use the citation labels separated by comma within one \cite command. For example:

\usepackage[square, comma, sort&compress]{natbib}
\cite{bluecoat,ciscowan,riverbed}

Should produce the output

[1-3] if they are citations 1,2, and 3 or [2,5,7] if they are 2,5 and 7.

However, with newer natbib style files there is a weired problem, which shows the error “natbib Error: Bibliography not compatible with author-year citations”.

A simple solution to this problem is to use “numbers” option with the package.

\usepackage[numbers,square, comma, sort&compress]{natbib}
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy