10

Possible Duplicate:
Citing a range of papers (using numeric keys)?

I notice that in some papers, people cite references as [1-5], or as [1,2,3]. The idea is that their references are numbered in increasing order. How do they do this? My references come out all over the place in \bibliographystyle{plain} as, for example, [2,3,1,4,5,7,9].

eqb
  • 203
  • not quite. i want the package the put the refs in numerical order when they're not. that's the key point, not grouping them. – eqb Aug 24 '12 at 18:10
  • 5
    Load the cite package: \usepackage{cite} and reprocess the document (pdflatex+bibtex+pdflatex+pdflatex) to rebuild the bibliography and the citationss. – Gonzalo Medina Aug 24 '12 at 18:12
  • Also, by default when you load cite the references come out [1-5]. If you want [1,2,3,4,5], you need to use the option nocompress. Also, if you want more space than the default amount between the numbers in a citation, you can use the option space. – MSC Aug 24 '12 at 21:32

1 Answers1

6

Plain orders references by name, if you look at your bibliography you'll see that it is alphabetical. To get your references in order of appearance use the style unsrt.

Laura
  • 478