Generalusing one bracket for referencing rather than two

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
tarektarek
Posts: 30
Joined: Fri Nov 23, 2007 12:56 am

using one bracket for referencing rather than two

Post by tarektarek »

Hi;
I want to have a reference to appear in my pdf as [1, 2, 3]. I tried to use in latex \cite{,,,}, but it always give me [1] [2] [3], please inform the right way.

Thanks

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

using one bracket for referencing rather than two

Post by localghost »

Citing references separated by comma should yield the desired result.

Code: Select all

\cite{ref1,ref2,ref3}
Please provide a minimal working example (MWE) that shows the undesired behaviour.


Best regards
Thorsten¹
tarektarek
Posts: 30
Joined: Fri Nov 23, 2007 12:56 am

Re: using one bracket for referencing rather than two

Post by tarektarek »

Hi;
Thanks for the follow up. I already did what you said but it is not working. Can you please have a look at this simple latex file. It generates [][][] while I wrote in latex \cite{,,,}

Thanks in advance
Attachments
LaTeX1.tex
(475 Bytes) Downloaded 632 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

using one bracket for referencing rather than two

Post by localghost »

Seems to be a redefinition by the IEEEtran class. This is done to fulfil the demands of the IEEE. Refer to Section VII (Citations, p. 6f) of the documentation. There you will find a solution to compress multiple citations and get the default behaviour.
Post Reply