我希望章节和子章节的文本为黄色文本,而不是白色文本。使用\setbeamercolor{section}{fg =yellow}
不会改变这些颜色
\documentclass[t,compress,squeeze,smaller]{beamer}
\usepackage[T1]{fontenc}
\usefonttheme[onlymath]{serif}
\usepackage[utf8]{inputenc} %linux
\usepackage[english]{babel}
\usepackage{pdfpages}
\usetheme[shadow]{Berlin}
\setbeamercolor{section }{fg =yellow}
\setbeamercolor{subsection }{fg =yellow}
\begin{document}
\section{My section}
\subsection{My subsection}
\begin{frame}
Blablabla
\end{frame}
\end{document}
答案1
您可以通过以下方式更改标题中(子)部分的颜色(sub)section in head/foot
:
\documentclass[t,compress,squeeze,smaller]{beamer}
\usepackage[T1]{fontenc}
\usefonttheme[onlymath]{serif}
\usepackage[utf8]{inputenc} %linux
\usepackage[english]{babel}
\usepackage{pdfpages}
\usetheme[shadow]{Berlin}
\setbeamercolor{section in head/foot}{fg=yellow}
\setbeamercolor{subsection in head/foot}{fg=yellow}
\begin{document}
\section{My section}
\subsection{My subsection}
\begin{frame}
Blablabla
\end{frame}
\end{document}