Latex beam: prevent TOC showing at once

I usually use

\AtBeginSection[] { \begin{frame}<beamer>{Gliederung} \tableofcontents[currentsection] \end{frame} } 

in my preamble, in order to achieve this, before new sections begin, the TOC will be shown with a dedicated starting sector.

In the conversation I actually get ready, I have one special section for which I do not want this behavior. The transition from section to this should be "silent." All other sections should start as they are now.

I am sure that this should be possible.

+7
latex beamer
source share
1 answer

In the \AtBeginSection guide, the \AtBeginSection is explained as follows:

 \AtBeginSection[special star text]{text} 

If you declare a special section using the star \section* command, the content \section* table does not appear. This decision is the first thing that comes to mind, but can change the way a section is represented in a document.

Another approach (experimental, I have never tested it) is to use a boolean parameter. If a logical parameter is specified, the code is not printed. Then you usually declare your section, but you set the boolean value around your code.

Here is an example of code that should do the trick:

 \RequirePackage{ifthen} % package required \newboolean{sectiontoc} \setboolean{sectiontoc}{true} % default to true \AtBeginSection[] { \ifthenelse{\boolean{sectiontoc}}{ \begin{frame}<beamer>{Gliederung} \tableofcontents[currentsection] \end{frame} } } \newcommand{\toclesssection}[1]{ \setboolean{sectiontoc}{false} \section{#1} \setboolean{sectiontoc}{true} } 

Then in the document, simply declare your special section as \toclesssection{My section without the toc} .

+9
source share

All Articles