GeneralCitation of references problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Citation of references problem

Post by pallav »

I write the bibliography in the following style:

Code: Select all

\begin{thebibliography}{}
\bibitem{RefJ} Hethcote, H.W., Wang, W., Han, L., et al.: A predator–prey
model with infected prey. Theor. Popul. Biol. 66, 259–268
(2004)
\bibitem{RefB} Shi, R., Chen, L.: The study of a ratio-dependent predator–
prey model with stage structure in the prey. Nonlinear Dyn.
58, 443–451 (2009)
\end{thebibliography}
and I cite them as \cite{RefJ,RefB}.
For an example, I got a pdf where the reference citation is as follows:
[13,14,15,16,17,18,19,25]
But I need the citation style as
[13-19,25]
Please help me in details so that I can get it. Thank you in advance.

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Citation of references problem

Post by gmedina »

Hi,

add this to the preamble of your document:

Code: Select all

\usepackage[compress]{cite}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Citation of references problem

Post by pallav »

Thanks, its works. Without [compress] it also works. What is the difference of using

Code: Select all

\usepackage{cite}
and

Code: Select all

\usepackage[compress]{cite}
Thank you again.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Citation of references problem

Post by gmedina »

pallav wrote:Thanks, its works. Without [compress] it also works. What is the difference of using

Code: Select all

\usepackage{cite}
and

Code: Select all

\usepackage[compress]{cite}
Thank you again.
You're welcome. There's no difference; the compress option is executed by default.

P.S.: on a side note, this subforum (LaTeX community->General) is not for LaTeX-related issues; your question belongs to LaTeX->General; some Moderator will surely move it.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply