我如何才能使我的引用出现在单个括号中?

我如何才能使我的引用出现在单个括号中?

我面临这个问题,我将我的引用列为

\cite{citation42,citation23}  

但它仍然出现在我的乳胶输出文件中:

works [42], [23] ....

但它应该是 works [42,23] ....

我该如何解决这个问题?我正在使用以下软件包:

\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\bibliographystyle{unsrt}
\usepackage{cite}

我尝试删除该cite包但没有任何变化。

参考这个:单括号内为多处引用

不确定为什么在这种情况下它拒绝被分组到单个括号中。请帮忙,谢谢!

编辑:

添加其他需要使用的包

\IEEEoverridecommandlockouts
% The preceding line is only needed to identify funding in the first footnote. If that is unneeded, please comment it out.
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}

\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}

\bibliographystyle{unsrt}

编辑2:

复制粘贴的示例(我检查过,它有效,但问题仍然存在)

\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
% The preceding line is only needed to identify funding in the first footnote. If that is unneeded, please comment it out.
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}

\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
        T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}

\bibliographystyle{unsrt}
\begin{document}
    
    \title{Exploring the reason why my latex wont work for bibs}
    
    \maketitle
    
    
    
    \begin{abstract}
        Recently, this is the abstract i am testing 
    \end{abstract}
    
    
    \section{Introduction}
    This is how we do the introduction and thus how things are donee in works \cite{citation42,citation23}  like this.
    
    \section*{Acknowledgment}
    
    This project is funded by abcedergrfgsdfg
    
    
    
    
    \begin{thebibliography}{00}
        
        
        \bibitem{citation42}
        L.Writer
        \newblock Large scale benchmark 
        \newblock testestest
        
        
        \bibitem{citation23}
        L.Writer
        \newblock Large scale benchmark 
        \newblock testestest
        
    \end{thebibliography}
    
    
\end{document}

相关内容