我看到几个 beamer 模板在标题部分使用一些点作为每个部分的导航栏。我的问题是,如何在每张幻灯片的右侧垂直创建导航栏,用于所有幻灯片,而无需分成几部分(就像带有点的进度条一样)?
感谢您的任何帮助!
编辑:
我有这个带点的水平条:
\documentclass{beamer}
\definecolor{frenchblue}{rgb}{0.0, 0.45, 0.73}
\usepackage[absolute]{textpos}
\usepackage{tikz}
\setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=4.8ex,dp=0.125ex]{palette}%
\insertsectionnavigationhorizontal{\paperwidth}{}{\hskip0pt plus1filll}
\end{beamercolorbox}%
}
}
\usetikzlibrary{shapes}
\setbeamertemplate{section in head/foot}{%
\if\insertsectionheadnumber1
\tikz \fill[frenchblue] circle (1.5pt);
\else
\tikz \fill[frenchblue] circle (1.5pt);
\fi
}
\setbeamertemplate{section in head/foot shaded}{%
\if\insertsectionheadnumber1
\tikz \draw[frenchblue] circle (1.5pt);
\else
\tikz \draw[frenchblue] circle (1.5pt);
\fi
\begin{document}
\end{document}
现在我希望它垂直放置在右侧,或者水平放置在底部……?
谢谢!
答案1
稍微变化一下侧边栏中的导航框架
\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%
\beamer@xpos=0\relax%
\beamer@ypos=0\relax%
\ht\beamer@sectionbox=1.875ex%
\dp\beamer@sectionbox=0ex%
\fi\ignorespaces}
\def\insertnavigation#1{%
\vbox{{%
\usebeamerfont{section in head/foot}\usebeamercolor[fg]{section in head/foot}%
\beamer@xpos=0\relax%
\beamer@ypos=1\relax%
\hbox to #1{\hskip.3cm\setbox\beamer@sectionbox=\hbox{\kern1sp}%
\ht\beamer@sectionbox=1.875ex%
\dp\beamer@sectionbox=0.75ex%
\hskip-1.875ex plus-1fill%
\global\beamer@section@min@dim\z@
\dohead%
\beamer@section@set@min@width
\box\beamer@sectionbox\hfil\hskip.3cm
\hfill
}%
}}}
\makeatother
% Set Theme
\usetheme[width=0.8cm]{Marburg}
\setbeamercolor*{mini frame}{fg=red,bg=blue}
\setbeamertemplate{sidebar canvas right}[vertical shading][top=white,bottom=white]
% 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}