答案1
在下面的例子中,我已将部分内容复制beamerouterthemesidebar.sty
到 MWE,并对可以修改的行添加了注释,以便更改侧边栏中元素之间的垂直间距。
\documentclass{beamer}
\usetheme{Berkeley}
\makeatletter
\setbeamertemplate{sidebar \beamer@sidebarside}
{
\beamer@tempdim=\beamer@sidebarwidth%
\advance\beamer@tempdim by -6pt%
{\usebeamerfont{title in sidebar}%
\vskip1.5em% <--- Vertical space before title in the sidebar.
\hskip3pt%
\usebeamercolor[fg]{title in sidebar}%
\insertshorttitle[width=\beamer@tempdim,center,respectlinebreaks]\par%
\vskip1.25em% <--- Vertical space between author and title in sidebar.
}%
{%
\hskip3pt%
\usebeamercolor[fg]{author in sidebar}%
\usebeamerfont{author in sidebar}%
\insertshortauthor[width=\beamer@tempdim,center,respectlinebreaks]\par%
\vskip1.25em% <--- Vertical space between author and first section heading.
}%
\insertverticalnavigation{\beamer@sidebarwidth}%
\vfill
\ifx\beamer@sidebarside\beamer@lefttext%
\else%
\usebeamercolor{normal text}%
\llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
\vskip2pt%
\fi%
}%
\makeatother
\title{This is the title}
\author{the author}
\begin{document}
\section{Some text}
\begin{frame}
\end{frame}
\end{document}