Is there any way to produce List of frames with beamer?

There is a way to make TOC using \tableofcontents, but there are only sections and subsections.

How can I get list of all frames without using sectioning?

-
 Welcome! What do you want to have as content? Only the frame numbers? – Marco Daniel May 19 '12 at 16:52 No, frame numbers and titles. – kryksyh May 19 '12 at 17:08 Or simple itemized list. I guess I can write shell script but wonder if it can be done by latex. – kryksyh May 19 '12 at 17:37

Here's a simple approach using the \@starttoc command through the newly defined \listofframes command; the new list will have extension .lbf. \addtobeamertemplate was used so that the frametitle command writes the desired information (frame number and title) to the .lbf file. The list is created issuing \listofframes:

\documentclass{beamer}

\makeatletter
\newcommand\listofframes{\@starttoc{lbf}}
\makeatother

\insertframetitle\par}%
}

\begin{document}

\begin{frame}
\frametitle{List of Frames}
\listofframes
\end{frame}

\begin{frame}
\frametitle{Test Frame One}
test
\end{frame}

\begin{frame}
\frametitle{Test Frame Two}
test
\end{frame}

\end{document}


Here's the resulting List of Frames:

To facilitate control over which frames to include in the new list, you can use a boolean switch; in the following example I used \ifframeinlbf initially set to true; if you want to suppress some titled frame(s) from the list of frames, use \frameinlbffalse right before those frame(s) and then use \frameinlbftrue right after the frame(s) to activate inclusion in the list:

\documentclass{beamer}

\newif\ifframeinlbf
\frameinlbftrue
\makeatletter
\newcommand\listofframes{\@starttoc{lbf}}
\makeatother

\ifframeinlbf
\insertframetitle\par}%
\else\fi
}

\begin{document}

\frameinlbffalse
\begin{frame}
\frametitle{List of Frames}
\listofframes
\end{frame}

\frameinlbftrue
\begin{frame}
\frametitle{Test Frame One}
test
\end{frame}

\begin{frame}
\frametitle{Test Frame Two}
test
\end{frame}

\end{document}

-
 Thank you! This works perfectly! – kryksyh May 19 '12 at 20:47 @kryksyh: You're welcome. Don't forget, after a sensible wait, to mark the answer (this one or another one that might eventually appear) that best solved your problem as accepted. In case of doubt, please see How do you accept an answer?. – Gonzalo Medina May 19 '12 at 20:51 Oh, that faded tick on the left is hard to find first time. Done. Thank you – kryksyh May 19 '12 at 20:59 Now I have homework - remove from TOC contents slide itself :) – kryksyh May 19 '12 at 21:09 @kryksyh please see my updated answer. – Gonzalo Medina May 19 '12 at 21:19