1

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

I have a lot of slides where there are successive identically named slides, for example the first one explains the topic and the second one has an example. I'd like that the \listofframes only shows the first one.

Thanks.

2
  • Is there a particular reason you are using multiple frames with the same title? How about using one frame with overlay commands, such as only<x>, to keep everything in one frame, and combine that with \listofframes as explained in the link you posted?
    – sudosensei
    Commented Jul 27, 2013 at 17:35
  • Can you elaborate on the overlay commands? Commented Jul 27, 2013 at 18:25

2 Answers 2

2

You'll find the answer right in your linked post:

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:

2
  • Right, but there are dozens of such frames, it's tedious to do them one at a time. I'll fall back to this method only if there's nothing better. Commented Jul 27, 2013 at 19:36
  • I'm accepting this since there doesn't seem to be a better way at the moment. Commented Jul 28, 2013 at 12:38
0
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{Table of Frames}
\listofframes
\end{frame}

\begin{frame}
\only<1> {
  \frametitle{Frame One}
  Some text.
}
\only<2> {
  Some more text.
}
\end{frame}

\begin{frame}
\frametitle{Frame Two}
Some text.
\end{frame}
\end{document}

You can insert the \frametitle{<title>} directive within \only<1> to prevent subsequent slides produced by the \only<x> directives from being shown in the table of frames. This, achieves what you wanted at the expense of the title appearing only in the slide produced by the \only<1> block.

I'm sure someone can come up with a far superior solution, but if you only need to show the title once, this should suffice.

3
  • Sadly, this solution seems to still generate multiple frame titles. Also, all the multiple frames (obviously) have identical frame numbers, lowering the real frame count. Commented Jul 27, 2013 at 19:46
  • Yes, apologies. I couldn't test my answer at all because I was not in front of my PC. I've edited my post with a new answer which prevents duplicate entries in the table of frames, but it comes at the expense of having the frame title show only in the first slide of each frame.
    – sudosensei
    Commented Jul 27, 2013 at 20:58
  • Ok, but your solution isn't that much better than the "default" one with inserting \frameinlbf boolean tags, and clutters my latex a lot with the \only<>{} directives. Thanks for trying though. Commented Jul 28, 2013 at 12:38

You must log in to answer this question.

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