In the beamer manual, the command \AtBeginSection
is explained as follows:
\AtBeginSection[special star text]{text}
If you declare the special section with the star command \section*
, the section table of content will not appear. This solution is the first that comes to mind but may change the way the section is represented in the document.
Another approach (experimental, I never tested it) would be to use a boolean parameter. If the boolean parameter is set, then the code is not printed. Then you declare your section normally but you set the boolean value around your code.
Here is a code sample 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, just declare your special section as \toclesssection{My section without the toc}
.
\section*
removes the entire section from the TOC, which I don't want. The second part, using a boolean variable, works perfectly! Thanks! – Limpkin