General ⇒ beamer | Alter Color of Block
beamer | Alter Color of Block
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. But definitions have exactly the same color as theorems.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
beamer | Alter Color of Block
take a look at the following example:
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}