Наложение подразделов в оглавлении с помощью Beamer

Наложение подразделов в оглавлении с помощью Beamer

В начале своей презентации я хотел бы показать следующее. На первом слайде я хотел бы показать оглавление только с разделами. То есть подразделы должны быть невидимы, но они должны быть ТАМ. Затем, на следующих слайдах, подразделы должны быть последовательно смешаны.

Использование опции pausesubsectionsfor \tableofcontentsимеет тот недостаток, что на первом слайде отображается только первый раздел. Использование опции hidesubsectionsполностью стирает подразделы, так что их невозможно смешать один за другим.

Я попытался создать фальшивое оглавление с помощью enumerateи itemizeи с помощью \pause, но интервал отличается от «реального» оглавления. Ниже представлен MWE.

\documentclass{beamer}

\begin{document}

\begin{frame}{Outline}
    \tableofcontents[pausesubsections]
\end{frame}

\section{One}

\subsection{OneOne}
\begin{frame}
    There is nothing here.
\end{frame}

\subsection{OneTwo}
\begin{frame}
    There is nothing here.
\end{frame}


\section{Two}

\subsection{TwoOne}
\begin{frame}
    There is nothing here.
\end{frame}

\subsection{TwoTwo}
\begin{frame}
    There is nothing here.
\end{frame}

\end{document}

решение1

Скрыть подразделы, сохранив при этом их пространство, можно легко, окрасив их в цвет фона.

\documentclass{beamer}

\begin{document}

{
\setbeamercolor{subsection in toc}{fg=bg}
\begin{frame}{Outline}
    \tableofcontents
\end{frame}
}

\begin{frame}{Outline}
    \tableofcontents[pausesubsections]
\end{frame}

\section{One}

\subsection{OneOne}
\begin{frame}
    There is nothing here.
\end{frame}

\subsection{OneTwo}
\begin{frame}
    There is nothing here.
\end{frame}


\section{Two}

\subsection{TwoOne}
\begin{frame}
    There is nothing here.
\end{frame}

\subsection{TwoTwo}
\begin{frame}
    There is nothing here.
\end{frame}

\end{document}

решение2

Может быть, вы хотите написать что-то вроде этого. Это работает с собственными командами бимера.

На первом слайде вы получаете схему только с заголовками разделов. При входе в разделы будет представлена ​​новая схема, в которой будут вставлены и выделены заголовки подразделов.

\documentclass{beamer}

\mode<presentation>{%
  %% At the begin of a section, insert a short outline
  \AtBeginSection[]{%
    \begin{frame}<beamer>%
      \frametitle{Outline}
      \tableofcontents[currentsection,subsectionstyle=show/shaded/hide]%
    \end{frame}%
  }%
  %% 
  %% Same for Subsections
  \AtBeginSubsection[]{%
    \begin{frame}<beamer>%
      \frametitle{Outline}
      \tableofcontents[currentsection,subsectionstyle=show/shaded/hide]%
    \end{frame}}%
}
\begin{document}


\begin{frame}{Outline}
    \tableofcontents[currentsection,sectionstyle=show,hideothersubsections]
\end{frame}

\section{One}

\subsection{OneOne}
\begin{frame}
    There is nothing here.
\end{frame}

\subsection{OneTwo}
\begin{frame}
    There is nothing here.
\end{frame}


\section{Two}

\subsection{TwoOne}
\begin{frame}
    There is nothing here.
\end{frame}

\subsection{TwoTwo}
\begin{frame}
    There is nothing here.
\end{frame}

\end{document}

Связанный контент