Document Classes ⇒ beamer | Change Color of Theorem Block
beamer | Change Color of Theorem Block
Thanks.
- Attachments
-
- beamer-theorem-block.jpg (16.02 KiB) Viewed 27383 times
Reason: Preferably no external links (see Board Rules). Attachments go onto the forum server where possible.
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
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- 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
\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: 10360
- 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}