beamer 演示文稿中多次连续引用

beamer 演示文稿中多次连续引用

我正在使用 beamer 创建演示文稿,我想添加引用,这些引用将显示为1-[3] 例如。当我写论文时,我使用 \usepackge{cite},只需执行 \cite{source1, source2, source3} 即可。由于某种原因,这在 beamer 中不起作用,引用只会显示为 [1,2,3]。有人知道为什么吗?简短示例:演示文稿来源:

\documentclass[aspectratio=169]{beamer}
%
% Choose how your presentation looks.
%
% For more themes, color themes and font themes, see:
% http://deic.uab.es/~iblanes/beamer_gallery/index_by_theme.html
%

\mode<presentation>
{
  \usetheme{Madrid}      % or try Darmstadt, Madrid, Warsaw, ...
  \usecolortheme{default} % or try albatross, beaver, crane, ...
  \usefonttheme{serif}  % or try serif, structurebold, ...
  \setbeamertemplate{navigation symbols}{}
  \setbeamertemplate{caption}[numbered]
} 

\usepackage{cite}
\bibliographystyle{ieeetr}



\setbeamertemplate{footline}
{
    \leavevmode%
    \hbox{%
        \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
            \usebeamerfont{author in head/foot}\insertshortauthor%~~\beamer@ifempty{\insertshortinstitute}{}{(\insertshortinstitute)}
        \end{beamercolorbox}%
        \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
            \usebeamerfont{title in head/foot}\insertshorttitle
        \end{beamercolorbox}%
        \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
            \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
            \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 
    \end{beamercolorbox}}%
    \vskip0pt%
}

\title[]{bla}
\author{3}
\institute{

}

\date{June, 2020}

\AtBeginSection[]
{
  \begin{frame}<beamer>
    \frametitle{Outline}
    \tableofcontents[currentsection,currentsubsection]
  \end{frame}
}

\begin{document}

\begin{frame}
  \titlepage
\end{frame}
\begin{frame}{Outline}
    \tableofcontents
\end{frame}

\begin{frame}
    \begin{itemize}
        \item cite \cite{abc, acv, asd}
    \end{itemize}
\end{frame}

\begin{frame}[allowframebreaks]{References}
    \bibliography{test_bib}
\end{frame}

\end{document}

测试_bib.bib:

@inproceedings{abc,
  title={{ad}},
  author={aa},
  booktitle={aa},
  pages={1416--1420},
  year={2003},
  organization={IEEE}
}
@article{acv,
  title={asd},
  author={ff},
  journal={sdf},
  volume={57},
  number={10},
  pages={6633--6649},
  year={2100},
  publisher={IEEE}
}

@inproceedings{asd,
  title={deep learning},
  author={dd},
  booktitle={Advances in Neural Information Processing Systems},
  pages={9436--9446},
  year={2018}
}

结果是:

结果

而我希望它是[1]-[3]。

谢谢

相关内容