我想更改单张幻灯片上所有文本的颜色(不是全局的),但我注意到有些环境似乎itemize
对我的愿望一无所知。考虑 MWE
\documentclass{beamer}
\mode<presentation> {
\usetheme{Madrid}
}
\begin{document}
\begin{frame}
\textcolor{green}{
this is green
\begin{itemize}
\item Not green but should be green
\end{itemize}
this is also green
\begin{align*}
F = ma
\end{align*}}
\end{frame}
\end{document}
这看起来像
我怎样才能强制所有文本变成一种颜色?
答案1
为了在演示过程中更改颜色,你可以这样做克里斯蒂安·胡普弗在一张幻灯片中对整个演示文稿进行本地处理,只需使用一些颜色技巧:
\documentclass{beamer}
\usetheme{Madrid}
\begin{document}
{
\begin{frame}
\setbeamercolor{item}{fg=green}
\setbeamercolor{normal text}{fg=green}
\usebeamercolor[fg]{normal text}
this is green
\begin{itemize}
\item Not green but should be green
\end{itemize}
this is also green
\begin{align*}
F = ma
\end{align*}
\end{frame}
}
\end{document}