Text FormattingCompress consecutive Citations

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
timknuj
Posts: 4
Joined: Sun Apr 15, 2012 10:15 pm

Compress consecutive Citations

Post by timknuj »

Hi,

I'm using LaTeX to write a report with a lot of references in them.

If I use the command \cite{myref1,myref2,myref3,myref4} it displays as [1,2,3,4]. Is there a way to get it to display as [1-4]? I think I've seen this in papers.

I'm using a custom .bst file which I've attached.

Thank you for your help.


Tim
Attachments
custom.txt
(21.54 KiB) Downloaded 207 times

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: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Compress consecutive Citations

Post by Stefan Kottwitz »

Hi Tim,

welcome to the board!

You can use the cite package for this.

Stefan
LaTeX.org admin
timknuj
Posts: 4
Joined: Sun Apr 15, 2012 10:15 pm

Re: Compress consecutive Citations

Post by timknuj »

thanks!
Post Reply