Dependiendo del contenido de \AtBeginSectionme sale diferentes errores

Dependiendo del contenido de \AtBeginSectionme sale diferentes errores

Tengo un MWE básico [después de eliminar 400 líneas de código no relacionadas :(] que contiene una beamerpresentación con una bibliografía generada por 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}

Dependiendo del contenido de \AtBeginSectionme sale diferentes errores

Error 1 ( plainopción activa)

\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$}'.

Error 2 (plain opciónnoactivo/ tikzpictureeliminado)

\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.

Sin error (sin contenido)

\AtBeginSection{
%   \begin{frame}%[plain]
%   \begin{tikzpicture}
%   \end{tikzpicture}
%   \end{frame}
}

ingrese la descripción de la imagen aquí

¿Puedes reproducir el problema?

Respuesta1

\printbibliographyllamadas \section*. Por lo tanto, está intentando anidar a framedentro de a frame, lo que no puede funcionar.

Cualquier uso

\AtBeginSection[]{%
  ...
}

para evitar las cosas de personalización en secciones sin numerar, o usar

\printbibliography[heading=none]

para evitar \printbibliographycrear un encabezado de sección.

información relacionada