1

I've got the following issue using LaTeX Beamer, Biber and AtBeginSection.

Error message:

Error line 30 - ! Extra }, or forgotten \endgroup.<recently read> } \end{frame}
Error line 30 - ! Extra }, or forgotten \endgroup.\endframe ->\egroup\begingroup \def \@currenvir {frame} \end{frame}
Warning line 30 - Font shape `OT1/cmss/m/sc' in size <10.95> not available(Font) Font shape `OT1/cmr/m/sc' tried instead

Input

\documentclass{beamer}

\usepackage[german]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}

\usepackage[backend=biber]{biblatex}
\addbibresource{../testing/mybib.bib}

\title{Hello}
\date{2022-01-01}
\author{Euclid of Alexandria}

\AtBeginSection{%
    \begin{frame}
        \sectionpage
    \end{frame}
}

\begin{document}

\section{And here we go}

\begin{frame}
Hallo. Hier der Verweis: \cite{khan2020}
\end{frame}

\begin{frame}
    \printbibliography
\end{frame}

\end{document}

mybib.bib

@article{khan2020,
  type = {Article},
  title = {A {{Blockchain-Based Secure Image Encryption Scheme}} for the {{Industrial Internet}} of {{Things}}},
  author = {Khan, Prince Waqas and Byun, Yungcheol},
  year = {2020},
  month = feb,
  journal = {ENTROPY},
  volume = {22},
  number = {2},
  publisher = {{MDPI}},
  address = {{ST ALBAN-ANLAGE 66, CH-4052 BASEL, SWITZERLAND}},
  doi = {10.3390/e22020175},
  abstract = {...}
}

I can avoid the error by

--> Commenting out the \begin{frame} and \end{frame} command in the AtBeginSection part which unfortunately breaks my layout because no frame is drawn otherwise. (I use this command as described in the Beamer User Guide Section 10.2):

\AtBeginSection{%
    %\begin{frame}
        \sectionpage
    %\end{frame}
}

--> Commenting out the \printbibliography which leads to a missing bibliography:

\begin{frame}
%   \printbibliography
\end{frame}

I really don't understand what's going on there so any help is very much appreciated.

Side note I configured my TexMaker for Biber in MacOS as described in this post: Biblatex with Biber: Configuring my editor to avoid undefined citations

1
  • @user187802 The page geometry like the top margin will be completly trashed without a frame! Sep 30, 2022 at 16:00

1 Answer 1

0

The problem is that biblatex tries to insert the bibliography as a new section. As this happens within a frame, this would nest the section page frame within another frame, which is not allowed.

You can avoid the problem by using \printbibliography[heading=none]:

\documentclass{beamer}

\usepackage[german]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}

\usepackage[backend=biber]{biblatex}

\addbibresource{biblatex-examples.bib}

\title{Hello}
\date{2022-01-01}
\author{Euclid of Alexandria}

\AtBeginSection{%
    \begin{frame}
        \sectionpage
    \end{frame}
}

\begin{document}

\section{And here we go}

\begin{frame}
Hallo. Hier der Verweis: \cite{knuth:ct}
\end{frame}

\begin{frame}
    \printbibliography[heading=none]
\end{frame}

\end{document}

Or you could redefine the bib heading. This way you would automatically get a frametitle:

\documentclass{beamer}

\usepackage[german]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}

\usepackage[backend=biber]{biblatex}

\addbibresource{biblatex-examples.bib}

\defbibheading{bibliography}[\refname]{%
  \frametitle{#1}%
}

\title{Hello}
\date{2022-01-01}
\author{Euclid of Alexandria}

\AtBeginSection{%
    \begin{frame}
        \sectionpage
    \end{frame}
}

\begin{document}

\section{And here we go}

\begin{frame}
Hallo. Hier der Verweis: \cite{knuth:ct}
\end{frame}

\begin{frame}
    \printbibliography
\end{frame}

\end{document}
2
  • Both works great. Thanks a lot for the reply on a short notice! Sep 30, 2022 at 15:57
  • @MrMistoffelees You're welcome! (btw: love your user name! Let the cats rule forever :) ) Sep 30, 2022 at 15:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .