这是此内容的重复问题,但我认为这个问题没有得到完全解答。我还想只显示当前部分及其子部分。所以我想要一些类似于 的东西hideothersubsections
。hideothersections
这可能吗?
\documentclass{beamer}
\usepackage{beamerthemesplit}
%\setcounter{tocdepth}{1}
%\setcounter{secnumdepth}{1}
\usetheme{Antibes}
\title{The Title}
\subtitle{Subtitle}
\author[F. Author]{F.author\inst{1}\and S. Autor\inst{2}}
\institute[University of Somewhere and Elsewhere] {
\inst{1}
UofS
\and
\inst{2}%
UofE
}
\date{\today}
\begin{document}
\begin{frame}
\frametitle{Table of Contents}
\tableofcontents[
sectionstyle=show,
hideallsubsections
]
\end{frame}
\section{Section 1}
\begin{frame}
Frame
\end{frame}
\subsection{subsection1}
\begin{frame}
Frame
\end{frame}
\AtBeginSection[]
{
\begin{frame}<beamer>
\frametitle{Outline}
\tableofcontents[currentsection
, hideothersubsections
]
\end{frame}
}
\section[Section2]{Section 2}
\subsection{Model Overview}
\begin{frame}
Frame
\end{frame}
\subsection{Characteristics of Model}
\begin{frame}
Frame
\end{frame}
\end{document}
基本上,我想删除第 2 节开头的大纲中第 1 节的阴影标题。
答案1
要仅显示当前部分,您可以使用\tableofcontents[sections=\value{section}]
\documentclass{beamer}
\usepackage{beamerthemesplit}
%\setcounter{tocdepth}{1}
%\setcounter{secnumdepth}{1}
\usetheme{Antibes}
\title{The Title}
\subtitle{Subtitle}
\author[F. Author]{F.author\inst{1}\and S. Autor\inst{2}}
\institute[University of Somewhere and Elsewhere] {
\inst{1}
UofS
\and
\inst{2}%
UofE
}
\date{\today}
\begin{document}
\begin{frame}
\frametitle{Table of Contents}
\tableofcontents[
sectionstyle=show,
hideallsubsections
]
\end{frame}
\section{Section 1}
\begin{frame}
Frame
\end{frame}
\subsection{subsection1}
\begin{frame}
Frame
\end{frame}
\AtBeginSection[]
{
\begin{frame}<beamer>
\frametitle{Outline}
\tableofcontents[sections=\value{section}]
\end{frame}
}
\section[Section2]{Section 2}
\subsection{Model Overview}
\begin{frame}
Frame
\end{frame}
\subsection{Characteristics of Model}
\begin{frame}
Frame
\end{frame}
\end{document}