LyXHow to group citations in Lyx like [1-3] instead of [1,2,3]?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
MarkH748
Posts: 4
Joined: Mon Nov 28, 2011 11:24 am

How to group citations in Lyx like [1-3] instead of [1,2,3]?

Post by MarkH748 »

I am citing from a bibtex bibliography if that matters.

Under Document Settings -> Bibliography, I have Netbib and Numerical Selected.

I read through google that I should put "\usepackage{cite}" in the LaTeX preamble but when I do this I get the following error when trying to preview the PDF.
CVoV3j1.png
CVoV3j1.png (75.13 KiB) Viewed 6688 times
Can anyone suggest a fix? I apologise if it's something ridiculously obvious!

Advanced thanks,

Mark

Fixed it. Just in case anyone's wondering, I was using the elsarticle.cls with which you have to use natbib which is incompatible with the cite package.

Add this to the preamble instead.

Code: Select all

\biboptions{sort&compress}
Last edited by cgnieder on Thu Jan 09, 2014 8:08 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply