我正在编写一个 Beamer 演示文稿,我想在导航侧边栏上为每一帧显示一个圆圈。可以这样做吗?以下是 MWE:
\documentclass{beamer}
% Set Theme
\usetheme{Marburg}
\usecolortheme{beaver}
% Set sections in sidebar color
\makeatletter{}
\setbeamercolor{section in sidebar}{fg=yellow}
\setbeamercolor{section in sidebar shaded}{fg=white}
\setbeamercolor{title in sidebar}{fg=yellow}
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{section in sidebar right}[sections numbered]
\makeatother{}
\begin{document}
\begin{frame}{Outline}
\tableofcontents
\end{frame}
\section{sec1}
\begin{frame}{frame1.1}
blah, blah, blah
\end{frame}
\begin{frame}{frame1.2}
blah, blah, blah
\end{frame}
\section{sec2}
\begin{frame}{frame2.1}
blah, blah, blah
\end{frame}
\begin{frame}{frame2.2}
blah, blah, blah
\end{frame}
\end{document}
有任何想法吗?
答案1
可以借用miniframe
主题中的导航栏并旋转它。
\documentclass{beamer}
% removing section names from navigation
\makeatletter
\def\sectionentry#1#2#3#4#5{% section number, section title, page
\ifnum#5=\c@part%
\beamer@section@set@min@width
\box\beamer@sectionbox\hskip1.875ex plus 1fill%
\beamer@xpos=0\relax%
\beamer@ypos=0\relax%
\ht\beamer@sectionbox=1.875ex%
\dp\beamer@sectionbox=0ex%
\fi\ignorespaces}
\makeatother
% Set Theme
\usetheme[width=0.8cm]{Marburg}
% insert dots in sidebar
\setbeamertemplate{sidebar right}{\hskip0.3cm\rotatebox{270}{\insertnavigation{.98\paperheight}}}
\begin{document}
\begin{frame}{Outline}
\tableofcontents
\end{frame}
\section{sec1}
\subsection{s1}
\begin{frame}{frame1.1}
blah, blah, blah
\end{frame}
\begin{frame}{frame1.2}
blah, blah, blah
\end{frame}
\section{sec2}
\subsection{s2}
\begin{frame}{frame2.1}
blah, blah, blah
\end{frame}
\begin{frame}{frame2.2}
blah, blah, blah
\end{frame}
\section{sec3}
\subsection{s3}
\begin{frame}{frame3.1}
blah, blah, blah
\end{frame}
\begin{frame}{frame3.2}
blah, blah, blah
\end{frame}
\end{document}