[Tex/LaTex] Blocks in Beamer

beamerblock

I want to put boxed text/block in Beamer and my LaTeX source is

\documentclass[pdf]{beamer}
\begin{document}
\begin{frame}
\begin{block}{Observation 1}
Simmons Hall is composed of metal and concrete.
\end{block}
\begin{block}{Observation 2}
Simmons Dormitory is composed of brick.
\end{block}
\begin{block}{Conclusion}
Simmons Hall $\not=$ Simmons Dormitory.
\end{block}
\end{frame}
\end{document}

This results in
enter image description here
whereas what I want is
enter image description here

Best Answer

Your MWE is using the default beamer theme, which doesn't define the blocks to have the colors you want. Try using a different theme, as below. Also, to get blue/green/red use block/exampleblock/alertblock, respectively.

\documentclass[pdf]{beamer}
\usetheme{Copenhagen}
\begin{document}
\begin{frame}
\frametitle{Frame title}
\begin{block}{Observation 1}
Simmons Hall is composed of metal and concrete.
\end{block}
\begin{exampleblock}{Observation 2}
Simmons Dormitory is composed of brick.
\end{exampleblock}
\begin{alertblock}{Conclusion}
Simmons Hall $\not=$ Simmons Dormitory.
\end{alertblock}
\end{frame}
\end{document}

You can also customize how things look by using \useinnertheme{} and \usecolortheme{}. See the beamer documentation for more info.

enter image description here

Related Question