BibTeX, biblatex and bibermultiple citations

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
21did21
Posts: 58
Joined: Thu Sep 08, 2011 12:27 pm

multiple citations

Post by 21did21 »

Hello world,

i don't understand with latex how we can cite multiple things ?

Example 1 : if i want to cite some autors
------------------

Code: Select all

\citep{book1,book2}
=> output :
[1,2]

Example 2 : if i want to cite lot of autors
------------------

Code: Select all

\citep{book1,book2,book3,book4,book5,book6}
=> output :
[1,2,3,4,5,6]

the problem is that i want to compress this wrtiting :roll:

i don't want : [1,2,3,4,5,6] but rather [1-6]

how i can make this please ?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

multiple citations

Post by localghost »

For an adequate problem description please get used to always providing a minimal example. Keep this in mind for future questions.

Due to missing information try this random shot.

Code: Select all

\usepackage[…,sort&compress,…]{natbib}
For details see Section 2.16 of the natbib manual. Such manuals can be read before posting. That's what they are made for. You have instant access on the command line.

Code: Select all

texdoc natbib

Thorsten
Post Reply