how can I change the color of the title of the definition block in Beamer without changing the color theme completely?
That is, I have this.
Code: Select all
\begin{definition}
Text
\end{definition}
Code: Select all
\begin{definition}
Text
\end{definition}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Code: Select all
\documentclass{beamer}
\usetheme{Warsaw}
\begin{document}
\begin{frame}
\begingroup
\setbeamercolor{block title}{bg=red,fg=blue}%bg=background, fg= foreground
\setbeamercolor{block body}{bg=yellow,fg=green}%bg=background, fg= foreground
\begin{definition}
A group $G$ is cyclic if there existis an element $x\in G$ such that $\langle x\rangle=G$.
\end{definition}
\endgroup
\end{frame}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis