我有一個基本的 MWE [刪除 400 個不相關的程式碼行之後:(] 包含一個beamer
帶有由biblatex
.
\documentclass{beamer}
\usepackage{tikz}
\usepackage{biblatex}
\begin{filecontents}{BibDatabase.bib}
@book{Miller2012,
author = {Adam Miller},
title = {Clever Book Title},
date = {2012},
}
\end{filecontents}
\addbibresource{BibDatabase.bib}
\AtBeginSection{
\begin{frame}[plain]
\begin{tikzpicture}
\end{tikzpicture}
\end{frame}
}
\begin{document}
\section{test}
\begin{frame}
\cite{Miller2012}
\printbibliography
\end{frame}
\end{document}
根據內容的不同,\AtBeginSection
我會得到不同的錯誤
錯誤 1(plain
選項處於活動狀態)
\begin{frame}[plain]
\begin{tikzpicture}
\end{tikzpicture}
\end{frame}
! Extra }, or forgotten \endgroup. \endframe ->\egroup \begingroup \def \@currenvir {frame} l.30 \end{frame} I've deleted a group-closing symbol because it seems to be spurious, as in `$x}$'. But perhaps the } is legitimate and you forgot something else, as in `\hbox{$x}'. In such cases the way to recover is to insert both the forgotten and the deleted material, e.g., by typing `I$}'.
錯誤 2(plain
選項不是有效/tikzpicture
已刪除)
\AtBeginSection{
\begin{frame}%[plain]
\begin{tikzpicture}
\end{tikzpicture}
\end{frame}
}
\AtBeginSection{
\begin{frame}%[plain]
%\begin{tikzpicture}
%\end{tikzpicture}
\end{frame}
}
! Missing \endcsname inserted. <to be read again> \vrule l.30 \end{frame} The control sequence marked <to be read again> should not appear between \csname and \endcsname.
沒有錯誤(根本沒有內容)
\AtBeginSection{
% \begin{frame}%[plain]
% \begin{tikzpicture}
% \end{tikzpicture}
% \end{frame}
}
你能重現這個問題嗎?
答案1
\printbibliography
來電\section*
。因此,您試圖將 a 嵌套frame
在 a 中frame
,這是行不通的。
要么使用
\AtBeginSection[]{%
...
}
以避免未編號部分中的自訂內容,或使用
\printbibliography[heading=none]
以避免\printbibliography
建立章節標題。