是否有选项可以将侧边栏垂直对齐到中间?使用以下最小工作示例,我可以获得此结果:
\documentclass{beamer}
\usetheme{Marburg}
\makeatletter
\setbeamertemplate{sidebar \beamer@sidebarside}
{
\beamer@tempdim=\beamer@sidebarwidth%
\advance\beamer@tempdim by -6pt%
\vskip4em%
\insertverticalnavigation{\beamer@sidebarwidth}%
\vfill
\ifx\beamer@sidebarside\beamer@lefttext%
\else%
\usebeamercolor{normal text}%
\llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
\vskip2pt%
\fi%
}%
\ifx\beamer@sidebarside\beamer@lefttext%
\defbeamertemplate*{sidebar right}{sidebar theme}
{%
\vfill%
\llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
\vskip2pt}
\fi
\makeatother
\title{Some title}
\author{author}
\institute{my workplace}
\date{\today}
\AtBeginSection[]
{
\begin{frame}
\frametitle{Table of Contents}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section[Outline]{}
\frame{\tableofcontents}
\section{Introdution}
\begin{frame}
\frametitle{Basics}
\begin{itemize}
\item A
\pause
\item B
\pause
\item C
\end{itemize}
\end{frame}
\subsection{More basics}
\begin{frame}
\frametitle{something goes here}
more stuff
\end{frame}
\section{My work}
\begin{frame}
my stuff...
\end{frame}
\end{document}
我知道我可以使用该\vskip
命令,但我想有一个灵活的主题,即使侧边栏有更多项目也可以对齐侧边栏。