Слайд ссылок на презентацию Beamer не может допускать разрывов кадров и иметь \frametitle

Слайд ссылок на презентацию Beamer не может допускать разрывов кадров и иметь \frametitle

Я пишу презентацию Beamer, и мои ссылки слишком длинные для одного кадра. Поэтому я попытался использовать [allowframebreaks], но затем я получаюОшибка превышения емкости TeXесли у меня есть \frametitle. Я могу иметь либо разрывы кадров, либо заголовок, но не оба. Я использую natbibи pdflatexна ShareLaTeX.com.

Вот мой код:

\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, ознакомьтесь с обсуждением вВ чем разница между Fragile и Robust?

Редактировать: Извините, \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" 
} 

Титульная страница Текст презентации с цитатами Ссылки, страница первая Ссылки, страница вторая

Связанный контент