LyXContract references from [1,2,3,4,5] to [1-5]

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
traveller
Posts: 3
Joined: Wed Feb 08, 2012 1:38 am

Contract references from [1,2,3,4,5] to [1-5]

Post by traveller »

Hi,

When I add references to the text it looks like [1,2,3,4,5]. Is there a way to contract this to [1-5]?

Thanks.

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Contract references from [1,2,3,4,5] to [1-5]

Post by Stefan Kottwitz »

You could use the cite package:

Code: Select all

\usepackage{cite}
It compresses reference ranges by default.

Stefan
LaTeX.org admin
Post Reply