如何在投影機中為每個部分和每個部分之前的小節添加目錄?

如何在投影機中為每個部分和每個部分之前的小節添加目錄?

在每個部分的開頭我想新增一個目錄沒有各小節目錄各小節。我能做些什麼?

答案1

您可以使用 的可選參數\tableofcontents\AtBeginSection- 命令來實現此目的。

您可以像這樣定義部分和子部分的樣式:

sectionstyle=<current section>/<other sections>

subsectionstyle=<current subsection>/<other subsections in current secton>/<other subsections>

有效的關鍵字是show,shadedhide

這將在每個部分放置一個不帶小節的目錄和一個包含當前節的小節的目錄:

\AtBeginSection[]
{
  \begin{frame}{title}
  \tableofcontents[
    sectionstyle=show/show,
    subsectionstyle=hide/hide/hide
  ]
  \end{frame}
  \begin{frame}{title}
  \tableofcontents[
    currentsection,
    sectionstyle=show/hide,
    subsectionstyle=show/show/hide
  ]
  \end{frame}
}

請參閱投影機使用者指南第 99–100 頁以了解說明

相關內容