beamer class: adding toc at the beginning of each section - correct slide numbers!

3,695 views
Skip to first unread message

openbsduser

unread,
Dec 23, 2008, 6:47:11 PM12/23/08
to LaTeX Users Group
Hi folks,

I'm using the beamer class to create a nice presentation. Using this
command

\AtBeginSubsection[]
{
\begin{frame}[plain]{Outline}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}

gives me a nice table of content just at the beginning of every
subsection - but my page numbers include those slides that display the
toc ...
Example:
titlepage (1) toc (2) introduction (3) toc (4) blabla (5) toc (6) ....
etc
but what I need is this:
titlepage (1) toc (X) introduction (2) toc (X) blabla (3) toc (X) ....
or:
titlepage (X) toc (X) introduction (2) toc (X) blabla (3) toc (X) ....

How can I get that behaviour?

Thanks in advance,
obsd

C Hanck

unread,
Dec 24, 2008, 7:16:50 AM12/24/08
to LaTeX Users Group
I am not sure whether the following example achieves all your goals,
but maybe it helps to get you closer:

- Christoph

\documentclass[]{beamer}
\usepackage[T1]{fontenc}
\usepackage[german]{babel}
\usetheme{Boadilla}

\AtBeginSection[] {
\begin{frame}[plain]
\frametitle{Übersicht}
\tableofcontents[currentsection]
\end{frame}
\addtocounter{framenumber}{-1}
}

\AtBeginSubsection[] {
\begin{frame}[plain]
\frametitle{Übersicht}
\tableofcontents[currentsubsection]
\addtocounter{framenumber}{-1}
\end{frame}
}

\begin{document}
\section{A}
\subsection{aa}
\begin{frame}bla1\end{frame}
\section{B}\subsection{bb}\begin{frame}bla2\end{frame}
\begin{frame}bla3\end{frame}
\section{C}\subsection{cc}\begin{frame}bla4\end{frame}
\end{document}

openbsduser

unread,
Dec 24, 2008, 12:40:02 PM12/24/08
to LaTeX Users Group
Thanks Christoph! This is just what I needed! Perfect! Merry Christmas!
Reply all
Reply to author
Forward
0 new messages