Please see Beamer presentation: List of frames within a section / part. I have copy-pasted Gonzalo Medina's example code below. Uncommenting the [allowframebreaks] or using it in any other frame that is also to be listed in the lbf file results in an error. Is there a way of obtaining the same result WITH the use of [allowframebreaks], assuming the context requires its use ?
\documentclass{beamer}
\usetheme{Berkeley}
\newif\ifframeinlbf
\frameinlbftrue
\makeatletter
\newcommand\listofframes{\vfill\@starttoc{lbf\thesection}}
\makeatother
\addtobeamertemplate{frametitle}{}{%
\ifframeinlbf
\addcontentsline{lbf\thesection}{section}{\protect\makebox[2em][l]{%
\protect\usebeamercolor[fg]{structure}\insertframenumber\hfill}%
\insertframetitle\vfill}%
\else\fi%
}
\begin{document}
\section{Test Section One}
\frameinlbffalse
\begin{frame}
\frametitle{List of Frames for Section One}
\listofframes
\end{frame}
\frameinlbftrue
\begin{frame}%[allowframebreaks]
\frametitle{Test Frame One One}
test
\end{frame}
\begin{frame}
\frametitle{Test Frame One Two}
test
\end{frame}
\section{Test Section Two}
\frameinlbffalse
\begin{frame}
\frametitle{List of Frames for Section Two}
\listofframes
\end{frame}
\frameinlbftrue
\begin{frame}
\frametitle{Test Frame Two One}
test
\end{frame}
\begin{frame}
\frametitle{Test Frame Two Two}
test
\end{frame}
\begin{frame}
\frametitle{Test Frame Two Three}
test
\end{frame}
\end{document}
