LaTeX forum ⇒ LyXHow 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

Postby MarkH748 » Thu Jan 09, 2014 6:38 pm

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 1964 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.
  1. \biboptions{sort&compress}
Last edited by cgnieder on Thu Jan 09, 2014 8:08 pm, edited 1 time in total.
Reason: uploaded picture to latex-community server (this is preferable to external links), added code markup

Tags:

Return to “LyX”

Who is online

Users browsing this forum: No registered users and 3 guests