由于“allowframebreaks”导致框架为空

由于“allowframebreaks”导致框架为空

下面的 MWE 在编译后pdflatex mwe.tex && bibtex mwe.aux && pdflatex mwe.tex生成一个包含 3 页的 PDF。1. 叹息框架,2. 两个参考书目框架中的第一个,最后是没有内容的“参考书目 II”框架(即空白页/空白框架)。

我知道这allowframebreaks对于实际内容来说是一个糟糕的想法并且可能存在缺陷但在这种情况下我仍然想使用它。空框是什么原因以及如何避免这种情况(当然除了改变参考书目内容之外)?

\documentclass{beamer}
\usepackage[utf8]{inputenc}
\title{}
\author{}
\date{\today}
\bibliographystyle{IEEEtran}

\usepackage{filecontents}

\begin{filecontents*}{bib.bib}
@article{bornmann2017,
  author="Bornmann, Lutz",
  title="Measuring impact in research evaluations: a thorough discussion of methods for, effects of and problems with impact measurements",
  journal="Higher Education",
  year="2017",
  month=may,
  day="1",
  volume="73",
  number="5",
  pages="775--787",
  issn="1573-174X",
  doi="10.1007/s10734-016-9995-x",
}

@article{meyer2009,
  author = {Meyer, Bertrand and Choppy, Christine and Staunstrup, J{\o}rgen and van Leeuwen, Jan},
  title = {Viewpoint: Research Evaluation for Computer Science},
  journal = {Communications of the ACM},
  volume = {52},
  number = {4},
  month = apr,
  year = {2009},
  issn = {0001-0782},
  pages = {31--34},
  numpages = {4},
  doi = {10.1145/1498765.1498780},
  acmid = {1498780},
  publisher = {ACM},
  address = {New York, NY, USA},
}

@techreport{esposito2018,
  author = {Floriana Esposito and Carlo Ghezzi and Manuel Hermenegildo and Helene Kirchner and Luke Ong},
  title = {Informatics Research Evaluation},
  institution = {Informatics Europe Informatics Europe Informatics Europe Informatics Europe Informatics Europe Informatics Europe Informatics Europe Informatics Europe Informatics Europe Informatics Europe Informatics Europe},
  day = {22},
  month = mar,
  year = {2018},
  url = {http://www.informatics-europe.org/component/phocadownload/},
}
\end{filecontents*}

\begin{document}

\begin{frame}{sigh}
  \cite{*}
\end{frame}

\begin{frame}[c,allowframebreaks]{Bibliography}
  \bibliography{bib}
\end{frame}

\end{document}

我忘了说我尝试过使用这个因素allowframebreaks,这或多或少可以作为一种解决方法,但由于它必须针对每种情况进行定制,所以我仍然想知道是什么触发了它以及是否可以修复。

我真的希望这不会像这个问题的先前版本(不是我的! ;)

答案1

我认为问题在于您通过设置指示帧中断比平时更早发生allowframebreaks=0.85。 在您的例子中,这意味着帧中断应该位于 3 个 bib 条目内的某个位置,但 bib 条目不能跨幻灯片拆分。

2 种解决方法:

使用整个框架allowframebreaks或在第三项之前设置框架分隔符,例如allowframebreaks=0.75

\documentclass[a4paper]{beamer}
\usepackage[utf8]{inputenc}
\title{}
\author{}
\date{\today}
\bibliographystyle{IEEEtran}

\usepackage{filecontents}

\begin{filecontents*}{bib.bib}
@article{bornmann2017,
  author="Bornmann, Lutz",
  title="Measuring impact in research evaluations: a thorough discussion of methods for, effects of and problems with impact measurements",
  journal="Higher Education",
  year="2017",
  month=may,
  day="1",
  volume="73",
  number="5",
  pages="775--787",
  issn="1573-174X",
  doi="10.1007/s10734-016-9995-x",
}

@article{meyer2009,
  author = {Meyer, Bertrand and Choppy, Christine and Staunstrup, J{\o}rgen and van Leeuwen, Jan},
  title = {Viewpoint: Research Evaluation for Computer Science},
  journal = {Communications of the ACM},
  volume = {52},
  number = {4},
  month = apr,
  year = {2009},
  issn = {0001-0782},
  pages = {31--34},
  numpages = {4},
  doi = {10.1145/1498765.1498780},
  acmid = {1498780},
  publisher = {ACM},
  address = {New York, NY, USA},
}

@techreport{esposito2018,
  author = {Floriana Esposito and Carlo Ghezzi and Manuel Hermenegildo and Helene Kirchner and Luke Ong},
  title = {Informatics Research Evaluation},
  institution = {Informatics Europe Informatics Europe Informatics Europe Informatics Europe Informatics Europe},
  day = {22},
  month = mar,
  year = {2018},
  url = {http://www.informatics-europe.org/component/phocadownload/},
}
\end{filecontents*}

\begin{document}

\begin{frame}{sigh}
  \cite{*}
\end{frame}

\begin{frame}[c,allowframebreaks]{Bibliography}
  \bibliography{bib}
\end{frame}

\begin{frame}[c,allowframebreaks=0.75]{Bibliography}
  \bibliography{bib}
\end{frame}


\end{document}

相关内容