# IEEE LaTeX style: grouping references

I'm writing a paper in LaTeX with the IEEE style and when citing multiple references with \cite{ref_A,ref_B,ref_C}, it produces [1],[2],[3]. How can I change that to [1,2,3]?

-
Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. –  Werner Feb 9 '12 at 19:00
Does the the publication venue allow you to make this change to the standard IEEE style? –  Toymakerii Feb 10 '12 at 3:40
Are you sure you want [1, 2, 3]? IEEE in fact needs [1]--[3]. –  Ali Mehrizi Jun 16 '12 at 16:10

## migrated from stackoverflow.comFeb 9 '12 at 18:56

This question came from our site for professional and enthusiast programmers.

Assuming that you are using the Transactions style with

\documentclass[final]{IEEEtran} %or draft etc.


Using the following line in the preamble

\usepackage[noadjust]{cite}


and also using the house style of IEEEtran with

\bibliographystyle{IEEEtran}


passed the IEEE check more than once.

-

Is your work meant for IEEE transactions? The IEEEtran class says:

Citations are made with the \cite command as usual. IEEEtran will produce citation numbers that are individually bracketed in IEEE style. (“[1], [5]” as opposed to the more common “[1, 5]” form.) The base IEEEtran does not sort or produce compressed “ranges” when there are three or more adjacent citation numbers. However, IEEEtran pre-defines some format control macros to facilitate easy use with Donald Arseneau’s cite.sty package. So, all an author has to do is to call cite.sty.

-

Not sure what marco package you're using, but if your bib style is something like "ieeetr" or "phaip".And it will works.

Code:

\documentclass{article}
%\usepackage{mcite} Optional if you want mcite feature.
\begin{document}
Insulator\cite{ref1,ref2} does not conduct electricity.
\bibliography{mydata}
\bibliographystyle{ieeetr}
\end{document}


and mydata.bib is:

@ARTICLE{ref1,
AUTHOR = "Zdzislaw Pawlak",
TITLE = "Rough sets",
JOURNAL = "International Journal of Computer Infomation Science",
YEAR = "1982",
volume = "5",
pages = "341-356",
}

@ARTICLE{ref2,
AUTHOR = "Zdzislaw Pawlak Jr.",
TITLE = "Rough sets",
JOURNAL = "International Journal of Computer Infomation Science",
YEAR = "1982",
volume = "5",
pages = "341-356",
}


Here is example from a tutorial
from latex editor(In Chinese)

Output:

And this is the example reference of phaip style

BTW, maybe you should go to the Tex stackexchange site for help.

-
Where did you get these images from? Please provide sources. –  animuson Feb 9 '12 at 18:49
IEEE has redefined the \citepunct macro, which determines what is inserted between citations. You can see this by using the \citen command, which doesn't insert the surrounding brackets, instead of \cite.
\renewcommand{\citepunct}{,\citepunctpenalty\,}
To control the appearance of three or more references, you may have to change the \citedash command as well. I haven't played with this, see the reference below for information about the \cite command.