我希望我的投影仪演示文稿的迷你框架中的点是完整的圆圈,并且在我讨论完相应的幻灯片后保持突出显示。让我更清楚地说明这一点:当您展示演示文稿的幻灯片时,顶部迷你框架中的相应点会突出显示,以便让观众跟上您的进度。我希望,一旦我更换幻灯片,已经着色的点仍为黑色。就像在加载栏中一样。这可以用简单的方式实现吗?不幸的是,我没有时间创建自己的主题 :) 非常感谢有时间和耐心回答的任何人。
\documentclass{beamer}
% Stile for Beamer
\usetheme{Singapore}
\usecolortheme{rose}
\usepackage[english]{babel}
\useoutertheme[]{miniframes}
\begin{document}
\section{hello}
\subsection{}
\begin{frame}
hello
\end{frame}
\begin{frame}
hello
\end{frame}
\end{document}
答案1
这似乎是我提供的部分代码的变体this answer
到Beamer:如何将迷你镜框从圆形改为矩形。以下是所需的代码(如果需要,请根据主题的颜色方案更改颜色规范):
\documentclass[compress]{beamer}
\usetheme{Singapore}
\usecolortheme{rose}
\usepackage[english]{babel}
\useoutertheme{miniframes}
\definecolor{dark-gray}{gray}{0.10} %color for the navigation squares
\makeatletter
\def\slideentry#1#2#3#4#5#6{%
%section number, subsection number, slide number, first/last frame, page number, part number
\ifnum#6=\c@part\ifnum#2>0\ifnum#3>0%
\ifbeamer@compress%
\advance\beamer@xpos by1\relax%
\else%
\beamer@xpos=#3\relax%
\beamer@ypos=#2\relax%
\fi%
\hbox to 2pt{%
\beamer@tempdim=-\beamer@vboxoffset%
\advance\beamer@tempdim by-\beamer@boxsize%
\multiply\beamer@tempdim by\beamer@ypos%
\advance\beamer@tempdim by -.05cm%
\raise\beamer@tempdim\hbox{%
\beamer@tempdim=\beamer@boxsize%
\multiply\beamer@tempdim by\beamer@xpos%
\advance\beamer@tempdim by -\beamer@boxsize%
\advance\beamer@tempdim by 1pt%
\kern\beamer@tempdim
\global\beamer@section@min@dim\beamer@tempdim
\hbox{\beamer@link(#4){%
\usebeamerfont{mini frame}%
\ifnum\c@section>#1%
\color{dark-gray}%
\else%
\ifnum\c@section=#1%
\ifnum\c@subsection>#2%
\color{dark-gray}%
\else%
\ifnum\c@subsection=#2%
\ifnum\c@subsectionslide>#3%
\color{dark-gray}%
\else%
\color{dark-gray}%
\fi%
\else%
\color{white}%
\fi%
\fi%
\else%
\color{white}%
\fi%
\fi%
\usebeamertemplate{mini frame}%
}}}\hskip-10cm plus 1fil%
}\fi\fi%
\else%
\fakeslideentry{#1}{#2}{#3}{#4}{#5}{#6}%
\fi\ignorespaces
}
\makeatother
\begin{document}
\section{Introduction}
\subsection{Introduction}
\begin{frame}{Frame}
1
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
2
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
3
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
4
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
5
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
6
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
7
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
8
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
9
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
10
\end{frame}
\section{Introduction}
\subsection{Introduction}
\begin{frame}{Frame}
11
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
12
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
13
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
14
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
15
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
16
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
17
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
18
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
19
\end{frame}
\subsection{Introduction}
\begin{frame}{Frame}
20
\end{frame}
\end{document}
动画展示了迷你框架所需方案的结果: