How can I change the background colors at 1 and 2 in the attached picture.
Thanks.
Document Classes ⇒ beamer | Change Color of Theorem Block
beamer | Change Color of Theorem Block
- Attachments
-
- beamer-theorem-block.jpg (16.02 KiB) Viewed 26917 times
Last edited by localghost on Tue Jan 08, 2013 8:11 pm, edited 1 time in total.
Reason: Preferably no external links (see Board Rules). Attachments go onto the forum server where possible.
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.
- Stefan Kottwitz
- Site Admin
- Posts: 10320
- Joined: Mon Mar 10, 2008 9:44 pm
beamer | Change Color of Theorem Block
Theorems use the
Stefan
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}
LaTeX.org admin
Re: beamer | Change Color of Theorem Block
Thank you Mr. Stefan, it works.
-
- Posts: 90
- Joined: Sun Jun 24, 2012 8:48 pm
beamer | Change Color of Theorem Block
...and how is possible to change the block body in only one or two frames?
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: 10320
- 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}
LaTeX.org admin