我想使用与下面的 MWE 完全相同的 miniframes 主题,但没有导航项目符号和子部分标题。我发现的唯一解决方案是同时修改部分标题(例如,通过删除其他部分)。我想保留 miniframes 主题的第一行,使所有部分可见。
在此先感谢您的帮助 !
\documentclass[17pt,t,compress]{beamer}
\useoutertheme{miniframes}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{section in head/foot shaded}{\color{gray}\usebeamertemplate{section in head/foot}}
\input{pre}
\begin{document}
\section{Section A}
\subsection{Subsection 1}
\begin{frame}
One frame
\end{frame}
\begin{frame}
One frame
\end{frame}
\subsection{Subsection 2}
\begin{frame}
One frame
\end{frame}
\begin{frame}
One frame
\end{frame}
\section{Section B}
\subsection{Subsection 1}
\begin{frame}
One frame
\end{frame}
\begin{frame}
One frame
\end{frame}
\subsection{Subsection 2}
\begin{frame}
One frame
\end{frame}
\begin{frame}
One frame
\end{frame}
\section{Section C}
\subsection{Subsection 1}
\begin{frame}
One frame
\end{frame}
\begin{frame}
One frame
\end{frame}
\subsection{Subsection 2}
\begin{frame}
One frame
\end{frame}
\section{Section D}
\subsection{Subsection 1}
\begin{frame}
One frame
\end{frame}
\begin{frame}
One frame
\end{frame}
\subsection{Subsection 2}
\begin{frame}
One frame
\end{frame}
\end{document}
答案1
\documentclass[17pt,t,compress]{beamer}
\useoutertheme{miniframes}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{section in head/foot shaded}{\color{gray}\usebeamertemplate{section in head/foot}}
\setbeamertemplate{headline}{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line head}
\end{beamercolorbox}
\begin{beamercolorbox}{section in head/foot}
\vskip2pt\insertsectionnavigationhorizontal{\paperwidth}{}{}\vskip2pt
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
\end{beamercolorbox}
}
\begin{document}
\section{Section A}
\subsection{Subsection 1}
\begin{frame}
One frame
\end{frame}
\begin{frame}
One frame
\end{frame}
\subsection{Subsection 2}
\begin{frame}
One frame
\end{frame}
\begin{frame}
One frame
\end{frame}
\section{Section B}
\subsection{Subsection 1}
\begin{frame}
One frame
\end{frame}
\begin{frame}
One frame
\end{frame}
\subsection{Subsection 2}
\begin{frame}
One frame
\end{frame}
\begin{frame}
One frame
\end{frame}
\section{Section C}
\subsection{Subsection 1}
\begin{frame}
One frame
\end{frame}
\begin{frame}
One frame
\end{frame}
\subsection{Subsection 2}
\begin{frame}
One frame
\end{frame}
\section{Section D}
\subsection{Subsection 1}
\begin{frame}
One frame
\end{frame}
\begin{frame}
One frame
\end{frame}
\subsection{Subsection 2}
\begin{frame}
One frame
\end{frame}
\end{document}