Document Classesbeamer | ToC showing Slides multiple Times

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
Testrider
Posts: 3
Joined: Tue Sep 20, 2011 2:44 pm

beamer | ToC showing Slides multiple Times

Post by Testrider »

Edit: For short version see my second post.

I am trying to make a presentation that allows me to click from one point in the list to the next. After some searching I found exactly the effect that I was looking for, but after compiling it a few times the table of contents is acting strange. For each point that I can click to a new element is added to the table of contents. Especially for the side bar it is hard to solve.

Here is my code:

Code: Select all

\documentclass{beamer}
\usepackage{beamerthemebars}
\usetheme{PaloAlto}
\usecolortheme{crane}

\title{TITLE}
\author{Dennis}
\date{September 22, 2011}

\begin{document}
\maketitle

\begin{frame} 
\section{TOC}
\frametitle{TOC}
\setcounter{tocdepth}{1}
\tableofcontents
\end{frame}

\begin{frame}
\section{Items}
\frametitle{Items}
\begin{itemize}
\item<1-> I1
	\begin{itemize}
		\item<2-> 1a
		\item<3-> 1b
		\item<4-> 1c
	\end{itemize}
 \item<1-> I2
	\begin{itemize}
		\item<5-> 2a
		\item<6-> 2b
	\end{itemize}
\end{itemize}
\end{frame}

\begin{frame}
\frametitle{Thanks}
\section{Thanks}
Thank you for your time.
\end{frame}
\end{document}
I have been looking for a solution for quite some time before asking so I hope someone here can help.
Last edited by Testrider on Thu Sep 22, 2011 5:50 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Testrider
Posts: 3
Joined: Tue Sep 20, 2011 2:44 pm

beamer | ToC showing Slides multiple Times

Post by Testrider »

My workaround so far is to add a dummy slide in front of the "multiplied" slide.
However this is very unsatisfactory as I am now practically forced to start my slide empty.

I have reduced the problem now to a much more minimal working example:

Code: Select all

\documentclass{beamer}
\usetheme{PaloAlto}
\begin{document}
\begin{frame}
\section{Section}
\pause
\end{frame}
\end{document}
Make sure to use pdflatex twice.

I really hope someone has a nice solution :)
Testrider
Posts: 3
Joined: Tue Sep 20, 2011 2:44 pm

Re: beamer | ToC showing Slides multiple Times

Post by Testrider »

After spending too much time on this in the past days I now stumbled upon the solution by accident.
If the section is declared before the beginning of the frame the problem does not occur.
Post Reply