Change bg color of block body

View: New views
3 Messages — Rating Filter:   Alert me  

Change bg color of block body

by Michael Kubovy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Friends of beamer.cls,

I have some pictures in which the background is white. When they appear on the light blue background of a block, they are ugly. How can I change the background of the block body to white for those slides?

_____________________________

Professor Michael Kubovy

University of Virginia

Department of Psychology

USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400

Parcels:    Room 102        Gilmer Hall

        McCormick Road    Charlottesville, VA 22903

Office:    B011    +1-434-982-4729

Lab:        B019    +1-434-982-4751

Fax:        +1-434-982-4766

WWW:    http://www.people.virginia.edu/~mk9y/






-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Latex-beamer-users mailing list
Latex-beamer-users@...
https://lists.sourceforge.net/lists/listinfo/latex-beamer-users

Re: Change bg color of block body

by Kjell Magne Fauske :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 2, 2008 at 4:26 PM, Michael Kubovy <kubovy@...> wrote:
> Dear Friends of beamer.cls,
> I have some pictures in which the background is white. When they appear on
> the light blue background of a block, they are ugly. How can I change the
> background of the block body to white for those slides?
>

This should to the trick:

{
\setbeamercolor{background canvas}{bg=white}
\begin{frame}
...
\end{frame}
}

By wrapping everything inside a TeX-group {..} the changes are kept local

- Kjell Magne Fauske

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Latex-beamer-users mailing list
Latex-beamer-users@...
https://lists.sourceforge.net/lists/listinfo/latex-beamer-users

Parent Message unknown Re: Change bg color of block body

by Kjell Magne Fauske :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 2, 2008 at 5:44 PM, Michael Kubovy <kubovy@...> wrote:
> Hi,
> As far as I can tell, this doesn't change the bg color inside
> \begin{block}
> \end{block}
> only the frame bg is changed by the suggested method.
>

You are right. To set the block background use:
\setbeamercolor{block body}{bg=white}
like in this example:

\documentclass{beamer}
\usecolortheme{albatross}
\begin{document}
{
\setbeamercolor{block body}{bg=white}
\begin{frame}

\begin{block}
some text
\end{block}
...
\end{frame}
}

\end{document}

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Latex-beamer-users mailing list
Latex-beamer-users@...
https://lists.sourceforge.net/lists/listinfo/latex-beamer-users
LightInTheBox - Buy quality products at wholesale price!