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

Is there a way so that, when I cite a range of papers, the output is a range of numbers, instead of a list of numbers? In other words, when I type

... some dummy text here is due to me \cite{me1, me2, me3, me4} ...

I want the output to be

... some dummy text here is due to me [3-6] ...

instead of

... some dummy text here is due to me [] ...

(I use LaTeX, and am currently using the amsart class and whatever it includes. But I am open to other suggestions.)

share|improve this question
up vote 32 down vote accepted

The cite, natbib, and biblatex packages, at least, will all do this.

share|improve this answer
Ah, the cite package. That gives a minimal work solution to my problem. Thanks. – Willie Wong Oct 7 '10 at 15:50
(I also realized that the amsrefs package can do it, but I didn't feel like retyping 92 citation entries.) – Willie Wong Oct 7 '10 at 15:52
warning -- biblatex hasn't been tested with amsart, and i can't predict whether it will work; i'm inclined to think it may not be totally smooth sailing. – barbara beeton Dec 30 '11 at 21:32

if you add


to your preamble, you should get the expected result.

share|improve this answer
one question! In the case of the 'cite' package, it ok to use: '\usepackage[numbers,sort&compress]{cite}' – Josh Jun 23 '13 at 14:31
If I test it, I see that \usepackage[square,numbers,sort&compress]{natbib} seems to be the same as \usepackage{cite} if using the plain bibliography style. The options of the cite package can be found in its documentation (numbers isn't one of them...). – Habi Jun 24 '13 at 15:06

Using biblatex, sorting and compressing numeric keys is achieved with

share|improve this answer
One of these days, I'll get around to converting to biblatex. – Willie Wong Nov 14 '10 at 21:50

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.