Beamer 演示文稿参考幻灯片不能允许框架中断并且有 \frametitle

Beamer 演示文稿参考幻灯片不能允许框架中断并且有 \frametitle

我正在写一个 Beamer 演示文稿,我的参考文献太长,无法在一个框架内显示。因此我尝试使用[allowframebreaks],但随后我得到了TeX 容量超出错误如果我有\frametitle。我可以使用帧中断或标题,但不能同时使用两者。我在 ShareLaTeX.com 上使用natbib和。pdflatex

这是我的代码:

\documentclass[14pt, compress]{beamer}

\usetheme{m}

\usepackage{booktabs}
\usepackage[scale=2]{ccicons}
\usepackage{minted}
\usepackage{amsmath}
\usepackage{adjustbox}
\usepackage{graphicx}
\usepackage{url}
\usepackage{float}
\usepackage{setspace}
\usepackage{tikz}
\usepackage{caption}
\usepackage[super]{natbib}
\usemintedstyle{trac}

\bibliographystyle{apalike}



\title{The Prospects of D-T Nuclear Fusion as a Source of Electricity Production}
\subtitle{A Senior Seminar}
\date{23 April 2015}
\author{Kyle Reilly}
\institute{Cedarville University}



\graphicspath{{figures/}}


\begin{document}

\begin{frame}[allowframebreaks]
\frametitle{References}

\footnotesize{
\bibliography{Seminar_References.bib}
}

\end{frame}



\end{document}

答案1

allowframebreaks选项有时需要您使用\protect框架标题。

您应该对您的文档做以下更改:

\begin{frame}[allowframebreaks]
  \frametitle{\protect References} % \protect the title here

  \footnotesize{
    \bibliography{Seminar_References.bib}
  }

\end{frame}

如果你想进一步了解为什么你需要\protect,请查看脆弱与坚固有何区别?

编辑:抱歉,\protect在编译的这个级别上没有达到预期的效果。您可以尝试以下解决方法,通过beamerthemem.sty使用以下\protect命令编辑行:

  281: \protect\insertframetitle%
  284: \textsc{\MakeLowercase{\protect\insertframetitle}}%

这是一个工作示例。

演示.tex:

\documentclass[14pt, compress]{beamer}

\usetheme{m}

\usepackage{booktabs}
\usepackage[scale=2]{ccicons}
\usepackage{minted}
\usepackage{amsmath}
\usepackage{adjustbox}
\usepackage{graphicx}
\usepackage{url}
\usepackage{float}
\usepackage{setspace}
\usepackage{tikz}
\usepackage{caption}
\usepackage[super]{natbib}
\usemintedstyle{trac}

\bibliographystyle{apalike}

\title{The Prospects of D-T Nuclear Fusion as a Source of Electricity Production}
\subtitle{A Senior Seminar}
\date{23 April 2015}
\author{Kyle Reilly}
\institute{Cedarville University}

\begin{document}

\maketitle

\begin{frame}

Force the frame break \citet{Knuth92} \citet{ConcreteMath} \citet{Simpson} \citet{Er01} \citet{greenwade93}

\end{frame}

\begin{frame}[allowframebreaks]
\frametitle{References}

\bibliography{demo}
\end{frame}
\end{document}

演示.bib:

@article{Knuth92, 
        author = "D.E. Knuth", 
        title = "Two notes on notation", 
        journal = "Amer. Math. Monthly", 
        volume = "99", 
        year = "1992", 
        pages = "403--422", 
} 

@book{ConcreteMath, 
        author = "R.L. Graham and D.E. Knuth and O. Patashnik", 
        title = "Concrete mathematics", 
        publisher = "Addison-Wesley", 
        address = "Reading, MA", 
        year = "1989" 
} 

@unpublished{Simpson, 
        author = "H. Simpson", 
        title = "Proof of the {R}iemann {H}ypothesis", 
        note = "preprint (2003), available at  
        \texttt{http://www.math.drofnats.edu/riemann.ps}", 
        year = "2003" 
} 

@incollection{Er01, 
        author = "P. Erd{\H o}s", 
        title = "A selection of problems and results in combinatorics", 
        booktitle = "Recent trends in combinatorics (Matrahaza, 1995)", 
        publisher = "Cambridge Univ. Press", 
        address = "Cambridge", 
        pages = "1--6", 
        year = "2001" 
} 
@article{greenwade93, 
    author  = "George D. Greenwade", 
    title   = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})", 
    year    = "1993", 
    journal = "TUGBoat", 
    volume  = "14", 
    number  = "3", 
    pages   = "342--351" 
} 

封面 附有引文的演示文稿 参考文献,第一页 参考文献,第二页

相关内容