我想使用 AtBeginSection[] 在进入该子部分的幻灯片之前显示当前子部分。这在 \section 中工作正常(我得到了一张在开始该部分之前显示当前部分的幻灯片),但在 \subsection 中则不行。我对此有点困惑,现在我需要一些帮助。以下是代码
%
% Choose how your presentation looks.
%
% For more themes, color themes and font themes, see:
% http://deic.uab.es/~iblanes/beamer_gallery/index_by_theme.html
%
\mode<presentation>
{
\usetheme{NYU} % or try Darmstadt, Madrid, Warsaw, ...
\usecolortheme{default} % or try albatross, beaver, crane, ...
\usefonttheme{default} % or try serif, structurebold, ...
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}[numbered]
}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage{hyperref}
\title[ShortTitle]{LongTitle}
\subtitle{Subtitle}
\author{Author}
\institute{Institute}
\date{\today}
\titlegraphic{\hfill\includegraphics[height=1.5cm]{nyu_shanghai}}
\AtBeginSection[]{%
\begin{frame}[plain]
\frametitle{Agenda}
\tableofcontents[currentsection, currentsubsection]
\end{frame}
}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{Agenda}
\tableofcontents
\end{frame}
\section{Section1}
hello
\begin{frame}{frame1}
hi frame
\end{frame}
\subsection{Subsection1}
i'm in the first subsection now but Subsection1 is not displayed before i enter the slide
\begin{frame}{Frame2}
asfdsaf
\end{frame}
\end{document}
任何帮助都将不胜感激。这是我第一次在这里发帖,如果格式需要改进,我深表歉意。我感谢所有反馈。提前致谢!