我有一个框架,其中有三张幻灯片(我不知道如何称呼它们,框架,幻灯片......)如下:
这三张幻灯片都是同一框架的一部分,并且是使用 创建的\pause
。
我想创建导航点来指示我们位于哪张幻灯片中:
如果当前帧只有一张幻灯片,我希望只显示一个点。如果当前帧有n
幻灯片,那么我希望显示n
点。
这可能吗?
以下是 MWE:
\documentclass[compress]{beamer}
\useoutertheme[subsection=false]{miniframes}
\begin{document}
\section{Section 1}
\subsection{Subsection 1.1}
\begin{frame}{Single Frame}
\end{frame}
\subsection{Subsection 1.2}
\begin{frame}{Multi slide frame}
\textbf{First slide}. I would like to have 3 dots at the bottom indicating the navigation of the current frame. \pause
\textbf{Second slide}. The second dot should be filled now.\pause
\textbf{Third slide}. Now the third dot should be filled.
\end{frame}
\subsection{Subsection 1.3}
\begin{frame}{Single Frame}
\end{frame}
\end{document}
答案1
您的 MWE 没有任何脚注,但您可以将以下代码添加到您使用的任何脚注中:
\documentclass[compress]{beamer}
\useoutertheme[subsection=false]{miniframes}
\usepackage{tikz}
\newcounter{cont}
\makeatletter
\setbeamertemplate{footline}{%
\setcounter{cont}{\beamer@endpageofframe}%
\addtocounter{cont}{1}%
\addtocounter{cont}{-\beamer@startpageofframe}%
\ifnum\thecont>1%
\foreach \i in {1, ..., \thecont}{%
\usebeamercolor[fg]{mini frame}%
\ifnum\i=\insertslidenumber%
~\usebeamertemplate{mini frame}%
\else%
~\usebeamertemplate{mini frame in current section}%
\fi%
}%
\fi%
}
\makeatother
\begin{document}
\section{Section 1}
\subsection{Subsection 1.1}
\begin{frame}{Single Frame}
\end{frame}
\subsection{Subsection 1.2}
\begin{frame}{Multi slide frame}
\textbf{First slide}. I would like to have 3 dots at the bottom indicating the navigation of the current frame. \pause
\textbf{Second slide}. The second dot should be filled now.\pause
\textbf{Third slide}. Now the third dot should be filled.
\end{frame}
\subsection{Subsection 1.3}
\begin{frame}{Single Frame}
\end{frame}
\end{document}