Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I cite range of references using latex and bibtex

Tags:

latex

bibtex

Hello Suppose I have 3 references that goes one after another i.e [1][2][3].

But I want to see [1]-[3].

What should I do.

Thank you.

like image 869
Yakov Avatar asked Oct 22 '10 12:10

Yakov


1 Answers

If you're using biblatex, you can use the numeric-comp style (see Section 3.3.1 of the documentation)

\usepackage[style=numeric-comp]{biblatex}

This will sort (and compress) the numbers inside the citation [8, 3, 1, 7, 2], becomes [1–3, 7, 8]

Additionally, if you want the citations to be numbered in the order they appear in the text, you can specify no sorting to biblatex with

\usepackage[style=numeric-comp, sorting=none]{biblatex}

So if the above example was the first citation in the text, it would become [1–5]

like image 143
Michael Hall Avatar answered Sep 20 '22 14:09

Michael Hall