# Combine reference citations

I would like the reference citation to appear like [1-4], rather than [1], [2], [3], [4].

Here is my MWE

\documentclass[a4paper,10pt]{book}
\begin{document}

Some text

\bibliographystyle{unsrt}
\bibliography{refer}
\end{document}


How to solve this pooling of citations?

-
To achieve this with biblatex you can use the style numeric-comp. – N.N. Feb 6 '12 at 6:22
use donald arseneau's cite.sty to do this with minimum effort; natbib.sty "sort+compress" option also does the job. see tex.ac.uk/cgi-bin/texfaq2html?label=citesort – wasteofspace Feb 10 '12 at 15:54

You need to use the style=numeric-comp for biblatex.
Here is the output from the numeric-comp.tex example file (without loading hyperref, for clarity):
The output is similar to that provided by the cite package.
@Anil: In your document preamble you should use \usepackage[style=numeric-comp]{biblatex}\addbibresource{refer.bib} and then only \printbibliography where you want the references printed in your document. \bibliographystyle is not used with biblatex. – Werner Feb 10 '12 at 15:17
@Anil: As mentioned in my answer, you may be interested in the cite package then, rather than biblatex. – Werner Feb 10 '12 at 16:34
@Anil: What about \cite{ref1,ref2,ref3}? – Werner Feb 11 '12 at 14:59