4

I want a beamer TOC slide like this:

SECTION 1
..Subsection 1
......Slide Title 1
..Subsection 2
......Slide Title 2
......Slide Title 2
NEXT SECTION
......Another Slide Title

In documents I use \paragraph to get the next level in on the TOC, but it does not seem to be supported in beamer. =(

It'd be best if the slidetitles get included in the TOC automatically (kind of like this: Beamer: how to make each frame appear in the PDF toc? ) But I'd be OK with changing the \slidetitle command to also put in a \paragraph command.

Here is some (possibly orthogonal) working code:

\documentclass{beamer}
\usepackage[latin1]{inputenc}
\usetheme{Antibes}

\begin{document}
\section{Section 1}
\subsection{Subsection 1}

\begin{frame}
\frametitle{Outline}
\tableofcontents
\end{frame}

\begin{frame}
\frametitle{Slide 1}
This is some content
\end{frame}

\end{document}
3
  • Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}
    – user31729
    Jun 27, 2014 at 11:30
  • I wonder if this'd be solved by using a different theme.
    – girnigoe
    Jun 27, 2014 at 19:00
  • Why use paragraph instead of subsubsection? If you put a subsubsection before every frame you will get the result you want. Not a automatically way, but it works! :)
    – Smarzaro
    Nov 14, 2014 at 23:34

1 Answer 1

1

The following answer opens a new \subsubsection at the beginning of every frame:

\documentclass{beamer}
\usetheme{Antibes}

\usepackage{etoolbox}

\makeatletter
\apptocmd{\beamer@@frametitle}{
    \subsubsection{\insertframetitle}
}
\makeatother

\begin{document}

    \begin{frame}
        \tableofcontents
    \end{frame}

    \section{Section 1}
    \subsection{Subsection 1}

    \begin{frame}
        \frametitle{Slide 1}
        This is some content
    \end{frame}

    \begin{frame}
        \frametitle{Slide 2}
        This is some content
    \end{frame} 

\end{document}

enter image description here

1
  • this is a crime nonetheless ;)
    – percusse
    Feb 29, 2016 at 20:49

You must log in to answer this question.

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