Text FormattingCite consecutive References as Range instead of List

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
R_i_W
Posts: 4
Joined: Fri Sep 23, 2011 6:21 pm

Cite consecutive References as Range instead of List

Post by R_i_W »

Hi,

I'm trying to cite many references at the beginning of a report and want them to appear as [1-5]. I read that Latex should automatically identify consecutively number references and do this for you, although when I list: \cite{ref1,ref2,ref3,ref4,ref5} the output appears as [1,2,3,4,5].

Is there a way I can force Latex to present them as a range please?

Thanks,
R_i_W
Last edited by R_i_W on Sat Sep 24, 2011 2:24 pm, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Cite consecutive References as Range instead of List

Post by josephwright »

Load the 'cite' package.
Joseph Wright
R_i_W
Posts: 4
Joined: Fri Sep 23, 2011 6:21 pm

Re: Cite consecutive References as Range instead of List

Post by R_i_W »

Many thanks, fixed it perfectly!
Post Reply