我正在編寫一個 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"
}