비머 목차: 현재 섹션과 하위 섹션만 슬라이드 상단에 배치

비머 목차: 현재 섹션과 하위 섹션만 슬라이드 상단에 배치

나는 많은 섹션을 포함하는 다소 긴 비머를 작성하고 있습니다. 섹션이 포함된 목차는 단일 슬라이드에 맞지만 각 섹션에서 하위 섹션을 표시하면 너무 길어서 볼 수 없습니다. 섹션/하위 섹션의 각 시작 부분에 해당 섹션에 대한 목차만 표시하고 상단에 정렬하고 싶습니다.

현재 섹션 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

현재 섹션의 ToC만 표시하려면 다음을 사용할 수 있습니다.

\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}

관련 정보