如何在 beamer 中仅显示当前部分及其所有子部分?

如何在 beamer 中仅显示当前部分及其所有子部分?

在 beamer 中,如何在章节开头的目录中仅显示当前章节及其所有子章节(非阴影),而显示所有其他章节和子章节(阴影)?

例如,在以下目录中,只有第 1 节和第 1.1 和 1.2 小节应在包含命令的第 1 节的第一张幻灯片上采用常规字体(以粗体突出显示)\tableofcontents,其他所有内容都应加阴影:

第 1 部分
1.1 小节
1.2 小节
第 2 节
第 2.1
节 第 2.2
节 第 3 节

答案1

\documentclass{beamer}

\AtBeginSection{
\begin{frame}
\tableofcontents[currentsection]
\end{frame}
}

\begin{document}

\section{1}
\subsection{1.1}
\subsection{1.2}
\section{2}
\subsection{2.1}
\subsection{2.2}
\section{3}


\begin{frame}
  abc
\end{frame} 

\end{document}

相关内容