Document Classes[beamer] toc parts

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
nico
Posts: 20
Joined: Tue Jun 08, 2010 10:13 am

[beamer] toc parts

Post by nico »

Hello,

I try to include a table of content in my presentation, where the parts are shown. I know that every part has it's own toc. But at the beginning of my talk, I want to show an overview of the parts I am going to talk about.

Let's take this:

Code: Select all

\documentclass[10pt,xcolor=dvipsnames]{beamer}

\AtBeginPart{\frame{\partpage}}

\begin{document}

\frame{
  \frametitle{Outline}
  \tableofcontents
}
\part{1st part}
\frame{test}
\part{2nd part}
\frame{test}

\end{document}
On the slide named „Outline“ I want:
1st part
2nd part
How can I do this?

Recommended reading 2024:

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

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

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

[beamer] toc parts

Post by gmedina »

Hi,

you could use \addtocontents:

Code: Select all

\documentclass[10pt,xcolor=dvipsnames]{beamer}

\AtBeginPart{\frame{\partpage}}

\begin{document}

\frame{
  \frametitle{Outline}
  \tableofcontents
  \addtocontents{toc}{1st part}
  \addtocontents{toc}{\protect\vskip15pt}
  \addtocontents{toc}{2nd part}
}

\part{1st part}
\frame{test}
\part{2nd part}
\frame{test}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
nico
Posts: 20
Joined: Tue Jun 08, 2010 10:13 am

Re: [beamer] toc parts

Post by nico »

Thank you, gemedina. But that is not really good. First, I have to write it manually, so I could also do it with an itemize-environment. The second problem is, that I get the parts in all tocs where the sections are shown.
Post Reply