Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Beamer: How to change the background color of blocks' headers

3,739 views
Skip to first unread message

Oz Shy

unread,
Sep 2, 2007, 1:31:10 PM9/2/07
to
How can I change the background color of the header of a block, from
dark blue to something else?

\begin{block}{HEADER}
text
\end{block}

The HEADER comes in a dark-blue background. How can I change it? I
have checked the manual and could not figure out how to do it. Thanks,
Oz.

Ulrich M. Schwarz

unread,
Sep 2, 2007, 1:37:34 PM9/2/07
to

Change the beamer color "block title", in particular the background.

HTH
Ulrich

Oz Shy

unread,
Sep 2, 2007, 3:05:21 PM9/2/07
to

Can you please be more specific, which command you are referring to.
Following your advice, I have tried:
\begin{block}{\colorbox{green}{HEADER}}
text.
\end{block}

Well the header now has a green background, but only around the text,
so it looks odd?

Thanks again for your help, Oz.

Ulrich M. Schwarz

unread,
Sep 3, 2007, 1:34:07 AM9/3/07
to

\documentclass{beamer}

\setbeamercolor{block title}{bg=red}

\begin{document}

\begin{block}{HEADER}
text
\end{block}

\end{document}

U.

0 new messages