内容に応じて\AtBeginSection異なるエラーが発生します

内容に応じて\AtBeginSection異なるエラーが発生します

beamer私は、 によって生成された参考文献を含むプレゼンテーションを含む基本的な MWE を持っています (無関係なコード行を 400 行削除した後 :()) 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*をネストしようとしていますが、これは機能しません。frameframe

どちらかを使用する

\AtBeginSection[]{%
  ...
}

番号のないセクションのカスタマイズを避けるには、

\printbibliography[heading=none]

\printbibliographyセクション見出しを作成しないようにするためです。

関連情報