## LaTeX forum ⇒ LyX ⇒ How to group citations in Lyx like [1-3] instead of [1,2,3]? Topic is solved

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
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]?  Topic is solved

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 (75.13 KiB) Viewed 2053 times

Can anyone suggest a fix? I apologise if it's something ridiculously obvious!

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.

`\biboptions{sort&compress}`