我想在 beamer 类中定义新的定理样式。我的意思是,我想为“claim”环境创建一个新块。为此,我使用以下命令:
\makeatletter
\def\th@claim{%
\normalfont % body font
\setbeamercolor{block title example}{bg=orange,fg=white}
\setbeamercolor{block body example}{bg=orange!20,fg=black}
\def\inserttheoremblockenv{exampleblock}
}
\makeatother
\theoremstyle{claim}
\newtheorem{claim}[theorem]{Claim}%
一切都很完美……直到我想要枚举。然后,我从示例块中得到了绿色数字(项目)。我该如何改变它?
谢谢
答案1
绿色是在example text
模板中定义的。将其更改为您想要的颜色:
\documentclass{beamer}
\makeatletter
\def\th@claim{%
\normalfont % body font
\setbeamercolor{block title example}{bg=orange,fg=white}
\setbeamercolor{block body example}{bg=orange!20,fg=black}
\setbeamercolor{example text}{fg=red}
\def\inserttheoremblockenv{exampleblock}
}
\makeatother
\theoremstyle{claim}
\newtheorem{claim}[theorem]{Claim}%
\begin{document}
\begin{frame}
\begin{claim}{Claim}
Test
\begin{enumerate}
\item First
\item Second
\end{enumerate}
\begin{itemize}
\item First
\item Second
\end{itemize}
\end{claim}
\end{frame}
\end{document}