Beamer - 参考书目中不必要的空间

Beamer - 参考书目中不必要的空间

我在 beamer 中使用 bibtex 进行引用。我的代码是:

\documentclass[xcolor={dvipsnames,table},12pt]{beamer}
\setbeamertemplate{footline}{%
    \hfill \insertframenumber / \inserttotalframenumber \hfill \vspace*{1mm}
}

\begin{document}
\begin{frame}{First slide}
These are all references for bibliography.
\cite{Holden2003} ,\cite{Holden2005}, \cite{Holden2006}, \cite{Holden2007}.
\end{frame}

\begin{frame}[allowframebreaks]{Reference}
\begin{small}
\bibliography{ref}
\end{small}
\end{frame}
\bibliographystyle{ieeetr} 

\end{document}

bibtex 文件是:

@article{Holden2005,
author = {Bountin, Dmitry and Chimitov},
journal = {Journal of Aircraft},
number = {02},
pages = {1203--1210},
title = {{Separated Shock Boundary-Layer Interaction Control Using Stream}},
volume = {50},
year = {2002}
}


@article{Holden2006,
author = {Bountin, Dmitry and Chimitov},
journal = {Journal of Aircraft},
number = {1},
pages = {1203--1210},
title = {{Separated Shock Boundary-Layer Interaction Control Using Streamwise Slots}},
volume = {50},
year = {2002}
}

@article{Holden2007,
author = {Bountin, Dmitry and Chimitov},
journal = {European Congres on Computational Methohd in Applied Sciences and Engineering},
number = {September},
pages = {1203--1210},
title = {{The physics of shock wave/boundary layer interaction control: last lessons learned}},
year = {2002}
}

@article{Holden2009,
author = {Bountin, Dmitry and Chimitov, Bountin, Dmitry and Chimitov and Bountin, Dmitry and Chimitov and Bountin, Dmitry and Chimitov},
journal = {Journal of Aircraft},
number = {50},
pages = {1203--1210},
title = {{Separated Shock Boundary-Layer Interaction Control Using Stream}},
volume = {50},
year = {2002}
}

然后第一张幻灯片只能容纳三个项目,而实际上它可以容纳四个项目。可以通过从代码中删除以下部分来确认这一点:

\setbeamertemplate{footline}{%
    \hfill \insertframenumber / \inserttotalframenumber \hfill \vspace*{1mm}
} 

这表明问题出在这些行上。因此,我的参考书目看起来很丑陋,而且占用了更多页数。任何有关此问题的帮助/建议都将不胜感激。提前致谢。

答案1

只要不将参考幻灯片放入其中,以免投影机出现问题allowframebreaks,所有内容都会保留在一页上。

注意:\insertframenumber / \inserttotalframenumber会在反斜杠周围给出不均匀的间距,我将其改为\insertframenumber{} / \inserttotalframenumber

\documentclass[xcolor={dvipsnames,table},12pt]{beamer}
\setbeamertemplate{footline}{%
    \hfill \insertframenumber{} / \inserttotalframenumber \hfill \vspace*{1mm}
}

\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{Balle2002,
author = {Bountin, Dmitry and Chimitov},
journal = {Journal of Aircraft},
number = {02},
pages = {1203--1210},
title = {{Separated Shock Boundary-Layer Interaction Control Using Stream}},
volume = {3},
year = {2002}
}


@article{Holden2005,
author = {Bountin, Dmitry and Chimitov},
journal = {Journal of Aircraft},
number = {1},
pages = {1203--1210},
title = {{Separated Shock Boundary-Layer Interaction Control Using Streamwise Slots}},
volume = {42},
year = {2005}
}

@article{Delery2000,
author = {Bountin, Dmitry and Chimitov},
journal = {European Congres on Computational Methohd in Applied Sciences and Engineering},
number = {September},
pages = {1203--1210},
title = {{The physics of shock wave/boundary layer interaction control: last lessons learned}},
year = {2000}
}

@article{Bountin2013,
author = {Bountin, Dmitry and Chimitov, Timur and Maslov, Anatoly and Novikov, Andrey and Egorov, Ivan and Fedorov, Alexander and Utyuzhnikov, Sergey},
journal = {Journal of Aircraft},
number = {5},
pages = {1203--1210},
title = {{Separated Shock Boundary-Layer Interaction Control Using Stream}},
volume = {51},
year = {2013}
}
\end{filecontents*}

\setbeamerfont{bibliography entry author}{size=\small}
\setbeamerfont{bibliography entry title}{size=\small}
\setbeamerfont{bibliography entry location}{size=\small}
\setbeamerfont{bibliography entry note}{size=\small}
\setbeamerfont{bibliography item}{size=\small}

\begin{document}
\begin{frame}{First slide}
These are all references for bibliography.
\cite{Balle2002} ,\cite{Holden2005}, \cite{Delery2000}, \cite{Bountin2013}.
\end{frame}

\begin{frame}{Reference}
\bibliographystyle{ieeetr} 
\bibliography{\jobname}
\end{frame}

\end{document}

在此处输入图片描述


编辑:

如果实际文献中有较多的参考文献,而该allowframebreaks选项需要保留,则稍微减小字体大小也会使前4个条目显示在一页上。

\documentclass[xcolor={dvipsnames,table},12pt]{beamer}
\setbeamertemplate{footline}{%
    \hfill \insertframenumber{} / \inserttotalframenumber \hfill \vspace*{1mm}
}

\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{Balle2002,
author = {Bountin, Dmitry and Chimitov},
journal = {Journal of Aircraft},
number = {02},
pages = {1203--1210},
title = {{Separated Shock Boundary-Layer Interaction Control Using Stream}},
volume = {3},
year = {2002}
}


@article{Holden2005,
author = {Bountin, Dmitry and Chimitov},
journal = {Journal of Aircraft},
number = {1},
pages = {1203--1210},
title = {{Separated Shock Boundary-Layer Interaction Control Using Streamwise Slots}},
volume = {42},
year = {2005}
}

@article{Delery2000,
author = {Bountin, Dmitry and Chimitov},
journal = {European Congres on Computational Methohd in Applied Sciences and Engineering},
number = {September},
pages = {1203--1210},
title = {{The physics of shock wave/boundary layer interaction control: last lessons learned}},
year = {2000}
}

@article{Bountin2013,
author = {Bountin, Dmitry and Chimitov, Timur and Maslov, Anatoly and Novikov, Andrey and Egorov, Ivan and Fedorov, Alexander and Utyuzhnikov, Sergey},
journal = {Journal of Aircraft},
number = {5},
pages = {1203--1210},
title = {{Separated Shock Boundary-Layer Interaction Control Using Stream}},
volume = {51},
year = {2013}
}
\end{filecontents*}

\setbeamerfont{bibliography entry author}{size=\fontsize{11pt}{13pt}}
\setbeamerfont{bibliography entry title}{size=\fontsize{11pt}{13pt}}
\setbeamerfont{bibliography entry location}{size=\fontsize{11pt}{13pt}}
\setbeamerfont{bibliography entry note}{size=\fontsize{11pt}{13pt}}
\setbeamerfont{bibliography item}{size=\fontsize{11pt}{13pt}}

\begin{document}
\begin{frame}{First slide}
These are all references for bibliography.
\cite{Balle2002} ,\cite{Holden2005}, \cite{Delery2000}, \cite{Bountin2013}.
\end{frame}

\begin{frame}[allowframebreaks]{Reference}
\bibliographystyle{ieeetr} 
\bibliography{\jobname}
\end{frame}

\end{document}

相关内容