Beamer の目次: 現在のセクションとサブセクションのみをスライドの上部に配置する

Beamer の目次: 現在のセクションとサブセクションのみをスライドの上部に配置する

私は、多くのセクションがあるかなり長いビーマーを書いています。セクションを含む目次は 1 つのスライドに収まりますが、各セクションでサブセクションを表示すると、長くなりすぎて見えなくなります。セクション/サブセクションの先頭ごとに、そのセクションのみの目次を上部に揃えて表示したいと思います。

現在、セクション 4 に到達すると、=== がスライドの制限を表す次のようになります。

 ============

1. Section1
2. Section2
3. Section3
4. Section4

  4.1 Subsection 41

===================

  4.2 Subsection 42 (so it gets out of the slide)

5. Section5

私が欲しいのは:

==========

4. Section4 (aligned at the top of the slide !)

  4.1 Subsection 41

  4.2 Subsection 42 

(free space here)

========

を使用した場合でもsectionstyle=show/hide, subsectionstyle=show/shaded/hide、セクションの位置は「記憶」されます。

ありがとう!

答え1

現在のセクションの目次のみを表示するには、

\documentclass{beamer}

\AtBeginSection{%
    \begin{frame}
        \tableofcontents[sections=\value{section}]
    \end{frame}
}

\begin{document}

\section{sec1}
\subsection{sub1}
\frame{abc}

\section{sec2}
\subsection{sub2}
\frame{abc} 

\end{document}

関連情報