4

At the moment I'm developing a corporate identity for the beamer class of my institute. In fact a power point solution is available and I'm trying to rebuild a tex-friendly version.

However, at the moment I'm trying to build a custom TOC, which is repeated with each new section (this I already accomplished), with special format: I want the sections to be in rounded beamercolorboxes, but the whole TOC should be displayed (in the manner of \tableofcontents[currentsection]).

Screenshot of my 'TOC'

My current code is in the MWE.

\documentclass{beamer}
\setbeamercolor{test}{fg = white, bg = red}
    \AtBeginSection[]{
        \begin{frame}
        \begin{beamercolorbox}[rounded = true]{test}
        \thesection.\ \insertsection \\
        \end{beamercolorbox}
        \end{frame}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

\section{This is the first section}
\begin{block}{This is the first block}
    Blocktext
\end{block}

\section{This is the second section, but I also want the the first one displayed with its box!}
\begin{frame}{frame}
    Frametext 
\end{frame}
\end{document}

Afaik there is no way to get the round boxes around the sections in the normal TOC or am I missing something? That's why I'm trying to make my own TOC.

Hopefully I could explain myself well enough...

Best regards

Patrick

David Carlisle
  • 757,742

0 Answers0