Document Classes ⇒ beamer | Change Color of Theorem Block
beamer | Change Color of Theorem Block
Thanks.
- Attachments
-
- beamer-theorem-block.jpg (16.02 KiB) Viewed 26958 times
Reason: Preferably no external links (see Board Rules). Attachments go onto the forum server where possible.
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
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
beamer | Change Color of Theorem Block
block title
and block body
colors. You can change it via \setbeamercolor
, for example:Code: Select all
\documentclass{beamer}\usetheme{Madrid}\setbeamercolor{block title}{use=structure,fg=white,bg=red!75!black}\setbeamercolor{block body}{use=structure,fg=black,bg=red!20!white}\begin{document}\begin{frame}\begin{theorem}Text\end{theorem}\end{frame}\end{document}
Re: beamer | Change Color of Theorem Block
-
- Posts: 90
- Joined: Sun Jun 24, 2012 8:48 pm
beamer | Change Color of Theorem Block
Stefan_K wrote:Theorems use theblock title
andblock body
colors. You can change it via\setbeamercolor
, for example:
StefanCode: Select all
Code, edit and compile here:\documentclass{beamer}\usetheme{Madrid}\setbeamercolor{block title}{use=structure,fg=white,bg=red!75!black}\setbeamercolor{block body}{use=structure,fg=black,bg=red!20!white}\begin{document}\begin{frame}\begin{theorem}Text\end{theorem}\end{frame}\end{document}
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
beamer | Change Color of Theorem Block
You could callpaulosousa wrote:...and how is possible to change the block body in only one or two frames?
\setbeamercolor
just in that frame, so the change is local and not in effect at the next frame:Code: Select all
\begin{frame}\setbeamercolor{block title}{use=structure,fg=white,bg=red!75!black}\setbeamercolor{block body}{use=structure,fg=black,bg=red!20!white}\begin{theorem}Text\end{theorem}\end{frame}