
Estou escrevendo uma apresentação do Beamer e minhas referências são muito longas para um quadro. Então tentei usar [allowframebreaks]
, mas depois recebo oErro de capacidade do TeX excedidase eu tiver um \frametitle
. Posso ter quebras de quadro ou o título, mas não ambos. Estou usando natbib
o pdflatex
ShareLaTeX.com.
Aqui está o meu código:
\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}
Responder1
A allowframebreaks
opção às vezes exige que você insira \protect
o título do quadro.
Você deve fazer a seguinte alteração em seu documento:
\begin{frame}[allowframebreaks]
\frametitle{\protect References} % \protect the title here
\footnotesize{
\bibliography{Seminar_References.bib}
}
\end{frame}
Se você quiser entender mais sobre por que você precisa \protect
, confira a discussão emQual é a diferença entre Frágil e Robusto?
Editar: desculpas, \protect
não tem o efeito pretendido neste nível da compilação. Você pode tentar a seguinte solução editando as linhas beamerthemem.sty
com o \protect
comando:
281: \protect\insertframetitle%
284: \textsc{\MakeLowercase{\protect\insertframetitle}}%
Aqui está um exemplo prático.
demonstração.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}
demonstração.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"
}