我只是想在序言中这样做:
\setbeamercolor{palette sidebar secondary}{fg=\usebeamercolor[fg]{frametitle}}
但它不起作用(文件无法编译,并且我收到警告rerunfilecheck
)。我正在使用带有左侧边栏的汉诺威主题。
答案1
\documentclass{beamer}
\usetheme{Hannover}
% to change the frame title color
\setbeamercolor{frametitle}{fg=purple}
% to set the section color the same as the frame title color
\setbeamercolor{section in sidebar}{use=frametitle,fg=frametitle.fg}
\begin{document}
\section{First section}
\begin{frame}{Frame within the first section}
\end{frame}
\section{Second section}
\begin{frame}{Frame within the second section}
\end{frame}
\end{document}