ビーマーのマニュアルでは、コマンド\AtBeginSection
は次のように説明されています。
\AtBeginSection[special star text]{text}
star コマンド\section*
で特別なセクションを宣言すると、セクションの目次は表示されません。この解決策が最初に思い浮かびますが、ドキュメント内でのセクションの表示方法が変わる可能性があります。
別のアプローチ (実験的で、テストしたことはありません) は、ブール値のパラメーターを使用することです。ブール値のパラメーターが設定されている場合、コードは出力されません。次に、セクションを通常どおり宣言しますが、コードの周りにブール値を設定します。
トリックを行うコードサンプルを次に示します。
\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}
}
次に、ドキュメントで、特別なセクションを として宣言するだけ\toclesssection{My section without the toc}
です。