Text Formattingnatbib | Multiple Citations Format

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
TomazLov
Posts: 1
Joined: Wed Feb 29, 2012 2:30 pm

natbib | Multiple Citations Format

Post by TomazLov »

Hello!

I am using "natbib" package in my article, but would like to change formatting of references in the text.
With parameters:

Code: Select all

\biboptions{square,sort&compress}
When I cited multiple references like this:

Code: Select all

~\cite{ref1,ref2,ref3,ref4}
I was able to get this: [1-4]
But what I would like is this: [1] - [4]
Is this possible to get with predefining commands? I have tried:

Code: Select all

\setcitestyle{citesep={]-[}}
but I did not get appropriate format.

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

Ewok49
Posts: 7
Joined: Fri Dec 09, 2011 2:33 pm

Re: natbib | Multiple Citations Format

Post by Ewok49 »

I am trying to get my references to work exactly how you don't want them. Could you please help me out with a bit more detail on the code. I am used to working directly in Lyx and am not getting much help by using latex preamble but perhaps if I edited my document.lyx file in the correct way I could get it to work.

Thanks in advance!
Post Reply