我正在创建大型演示文稿beamer
并使用Hannover
主题来显示章节、小节和小小节。
演示文稿很大,因此导航栏中的列表大小超出了页面的高度。
有什么办法可以不显示当前部分以外的其他部分中的小节和子小节?
编辑:
我想去掉图片的黄色部分
编辑2:假设演示文稿的结构是:
-SECTION 1
--SUBSECTION 11
---SUBSUBSECTION 111
---SUBSUBSECTION 112
--SUBSECTION 12
---SUBSUBSECTION 121
---SUBSUBSECTION 122
--SUBSECTION 13
-SECTION 2
--SUBSECTION 21
---SUBSUBSECTION 211
-SECTION 3
另外假设我在名为 SUBSUBSECTION 111 的页面上,导航栏应该显示:
-SECTION 1
--SUBSECTION 11
---SUBSUBSECTION 111 <-- here I am
---SUBSUBSECTION 112
--SUBSECTION 12
--SUBSECTION 13
-SECTION 2
-SECTION 3
答案1
更新
编辑问题后,没有给出预定义的选项来获得所需的结果,但您可以使用
\makeatletter
\beamer@nav@subsectionstyle{show/hide/hide}
\makeatother
完整示例:
\documentclass{beamer}
\usetheme{Hannover}
\makeatletter
\beamer@nav@subsectionstyle{show/hide/hide}
\makeatother
\begin{document}
\section{Test section one}
\begin{frame} test frame in section~\thesection\end{frame}
\subsection{Test subsection one one}
\begin{frame} test frame in section~\thesection\end{frame}
\subsubsection{Test subsubsection one one one}
\begin{frame} test frame in section~\thesection\end{frame}
\subsection{Test subsection one two}
\begin{frame} test frame in section~\thesection\end{frame}
\subsubsection{Test subsubsection one two one}
\begin{frame} test frame in section~\thesection\end{frame}
\section{Test section two}
\begin{frame} test frame in section~\thesection\end{frame}
\subsection{Test subsection two one}
\begin{frame} test frame in section~\thesection\end{frame}
\subsubsection{Test subsubsection two one one}
\begin{frame} test frame in section~\thesection\end{frame}
\subsection{Test subsection two two}
\begin{frame} test frame in section~\thesection\end{frame}
\subsubsection{Test subsubsection two two one}
\begin{frame} test frame in section~\thesection\end{frame}
\end{document}
第一个版本
只需将其hideothersubsections
用作主题:
\documentclass{beamer}
\usetheme[hideothersubsections]{Hannover}
\begin{document}
\section{A first test section}
\begin{frame} test frame in section~\thesection\end{frame}
\subsection{A test subsection}
\begin{frame} test frame in section~\thesection\end{frame}
\subsubsection{A test subsubsection}
\begin{frame} test frame in section~\thesection\end{frame}
\subsection{A test subsection}
\begin{frame} test frame in section~\thesection\end{frame}
\subsubsection{A test subsubsection}
\begin{frame} test frame in section~\thesection\end{frame}
\section{A second test section}
\begin{frame} test frame in section~\thesection\end{frame}
\subsection{A test subsection}
\begin{frame} test frame in section~\thesection\end{frame}
\subsubsection{A test subsubsection}
\begin{frame} test frame in section~\thesection\end{frame}
\subsection{A test subsection}
\begin{frame} test frame in section~\thesection\end{frame}
\subsubsection{A test subsubsection}
\begin{frame} test frame in section~\thesection\end{frame}
\end{document}
第一部分框架的侧边栏图像:
第二部分框架的侧边栏图像: