我有两个问题
我正在使用
metropolis
samcarter 建议的带有部分指示器的主题(向 Metropolis 主题添加部分指示器?)。但是我不想显示子部分项目符号点,因为我有很多子部分,并且子部分的每个框架的每个点都会溢出。所以我只想显示部分指示器。我还想将部分指示器放在框架的底部而不是顶部。
答案1
\documentclass{beamer}
\usetheme{moloch}% modern fork of the metropolis theme
\setbeamertemplate{mini frame}{}
\setbeamertemplate{mini frame in current section}{}
\setbeamertemplate{mini frame in current subsection}{}
\makeatletter
\setbeamertemplate{footline}{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line head}
\end{beamercolorbox}
\begin{beamercolorbox}{section in head/foot}
\vskip2pt\insertnavigation{\paperwidth}\vskip-2pt
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
\end{beamercolorbox}
}
\makeatother
\setbeamercolor{section in head/foot}{fg=normal text.bg, bg=structure.fg}
\begin{document}
\section{section 1}
\subsection{section name}
\begin{frame}
\frametitle{blub}
abc
\end{frame}
\begin{frame}
\frametitle{blub}
abc
\end{frame}
\section{section 2}
\begin{frame}
\frametitle{blub}
abc
\end{frame}
\section{section 3}
\begin{frame}
\frametitle{blub}
abc
\end{frame}
\end{document}
包括帧号的第二种解决方案
\documentclass{beamer}
\usetheme{moloch}% modern fork of the metropolis theme
\setbeamertemplate{mini frame}{}
\setbeamertemplate{mini frame in current section}{}
\setbeamertemplate{mini frame in current subsection}{}
\makeatletter
\setbeamertemplate{footline}{%
\begin{beamercolorbox}[wd=\textwidth, sep=3ex]{footline}%
\usebeamerfont{page number in head/foot}%
\hfill%
\usebeamertemplate*{page number in head/foot}
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line head}
\end{beamercolorbox}
\begin{beamercolorbox}{section in head/foot}
\vskip2pt\insertnavigation{\paperwidth}\vskip-2pt
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
\end{beamercolorbox}
}
\makeatother
\setbeamercolor{section in head/foot}{fg=normal text.bg, bg=structure.fg}
\begin{document}
\section{section 1}
\subsection{section name}
\begin{frame}
\frametitle{blub}
abc
\end{frame}
\begin{frame}
\frametitle{blub}
abc
\end{frame}
\section{section 2}
\begin{frame}
\frametitle{blub}
abc
\end{frame}
\section{section 3}
\begin{frame}
\frametitle{blub}
abc
\end{frame}
\end{document}