Recently, I was wondering how to cite multiple references at once, e.g. [1, 5, 9] or even [1-3, 6, 8]. It took me quite some time to find a solution on the web, which is one of the reasons I am posting this article here.
The solution is astonishingly easy. If you want to cite multiple references within the same brackets, you just need to separate the labels with a comma. In addition, cite will automatically check if your labels are part of an ordered list and reduce the list by replacing all the “in-betweens” with a hyphen.
Tags: Bibtex, cite, LaTex, multiple citation
July 14, 2007 at 5:20 am |
Thanks so much… I was almost desperate ….
August 2, 2007 at 10:01 pm |
thanks!! helps a lot with my dissertation!
December 28, 2007 at 4:16 pm |
You are the man!
January 9, 2008 at 11:27 pm |
Which style did you use? I tried with unsrt, it did not work.
January 12, 2008 at 5:40 pm |
touché!
February 14, 2008 at 2:26 pm |
uhm, I got [1,2,3] instead of [1-3]. Should I put something somewhere to tell bibtex to check the orere of my citations??
March 12, 2008 at 3:26 pm |
This doesn’t seem to always work, can you put an example file for testing?
Thanks.
March 17, 2008 at 10:44 pm |
Hi Methew,
You are right. Check out my other post on Natbib.
Cheers,
Tom
April 21, 2008 at 7:36 pm |
[...] citations.You can get the distribution as well as the documentation from CTAN.Apparently, my previous post on this topic was not providing sufficient information in order to automatically create lists for multiple [...]
June 21, 2008 at 11:52 pm |
Hi all
at first mine didnt work too
but when i added the Natbib to my latex it worked!!!
i dont know what is their relation but it works now
i added the below line in the beginning
\usepackage[square, comma, sort&compress]{natbib}
and used
~\cite{dejan07expanding,dan94scheduling}
and got
[1,2]
i did not test [1-2]
June 22, 2008 at 12:00 am |
hi all
it also works for [1-4]
August 9, 2008 at 3:58 am |
Hello
You are a life saver
thank you
August 17, 2008 at 10:50 pm |
I already \usepackage[square, comma, sort&compress]{natbib} and get good result [1-10], but the font size of reference section is bigger than other sections. For example in its font size is 11 pt, others are 10pt although I set \documentclass[letterpaper, 10 pt, conference]{ieeetran}. Can someone else help me to out this problem?
Thanks very much
August 27, 2008 at 9:11 pm |
Hi,
What you can try is the following: After your \usepackage…
\bibfont\small or whatever size of font you are using.
Here is a complete reference of the natbib package:
http://mirror.switch.ch/ftp/mirror/tex/macros/latex/contrib/natbib/natbib.pdf
Hope this works,
Tom
October 7, 2008 at 10:37 am |
Thank you so much, just saved me so much time – submission two days away!
November 15, 2008 at 10:42 pm |
thank you!
November 24, 2008 at 2:36 pm |
Thanks a lot, this info is surprisingly hard to find.. well, if it weren’t for the google result with this blog entry
December 21, 2008 at 2:11 pm |
Thanks a lot!
January 6, 2009 at 9:25 am |
Great info thanks. BTW, make sure you don’t leave spaces around the commas. eg – \cite{a,b,c} and not \cite{a, b, c}. The latter breaks for me.
April 5, 2009 at 12:40 am |
Save me a lot of time…Thanks!
July 1, 2009 at 9:38 pm |
Great! Thank you so much.
July 31, 2009 at 8:12 am |
Thank you!!! You saved me a lot of browsing the web!
October 15, 2009 at 9:07 am |
Finally found it here! Thanks!
October 20, 2009 at 8:17 pm |
Thank you soo much! I expected hours of google’ing and going down hundreds of levels in threads.
You are a life-saver
October 20, 2009 at 11:07 pm |
Thank you, saved me a lot of time, you’re awesome!