15

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?

2
  • 4
    To achieve this with biblatex you can use the style numeric-comp.
    – N.N.
    Commented Feb 6, 2012 at 6:22
  • 1
    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 Commented Feb 10, 2012 at 15:54

1 Answer 1

17

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):

Loading biblatex with style numeric-comp

The output is similar to that provided by the cite package.

6
  • I am using \bibliographystyle{unsrt} in my article to generate the references as they appear. but, if i use the one use have prescribed, i am not getting the references as they appear.
    – Anil
    Commented Feb 10, 2012 at 9:55
  • @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
    Commented Feb 10, 2012 at 15:17
  • in that case, references will be cited as per the entry in .bib file and not as they appear in the manuscript.
    – Anil
    Commented Feb 10, 2012 at 15:55
  • 2
    @Anil: As mentioned in my answer, you may be interested in the cite package then, rather than biblatex.
    – Werner
    Commented Feb 10, 2012 at 16:34
  • 2
    @Anil: What about \cite{ref1,ref2,ref3}?
    – Werner
    Commented Feb 11, 2012 at 14:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .