Page Layoutbeamer | Background Colors in Boxes

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
soTo
Posts: 8
Joined: Tue Aug 23, 2011 1:00 pm

beamer | Background Colors in Boxes

Post by soTo »

Hi everyone,

I am trying to change the background color of my beamer boxes, but it always remains white.

Here is example:

Code: Select all

\documentclass{beamer}

\usepackage{color}

\usepackage[english]{babel}
\usepackage[applemac]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{graphicx}
\usepackage{multirow}

\usetheme{classic} 
\usefonttheme{serif}

\setbeamertemplate{navigation symbols}{} % no navigation symbols
\setbeamertemplate{itemize item}[ball]
\setbeamertemplate{itemize subitem}[triangle]
\setbeamertemplate{blocks}[rounded][shadow=true]

\begin{document}

\begin{alertblock}{Test}
  Test
\end{alertblock}
	
\begin{beamerboxesrounded}[upper=yellow,lower=blue,shadow=true]{Test}
  Test
\end{beamerboxesrounded}

\begin{block}{Bloc arrondi et ombré}
  Un bloc avec option rounded et shadow
\end{block}

\end{document}
The background colors of the different boxes are always white, whatever I do.

Some help would be appreciated !

Cheers
Last edited by soTo on Wed Nov 09, 2011 9:38 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

soTo
Posts: 8
Joined: Tue Aug 23, 2011 1:00 pm

beamer | Background Colors in Boxes

Post by soTo »

I have finally found the answer.

I have defined in the preamble:

Code: Select all

\setbeamercolor{upcol}{fg=black,bg=yellow}
\setbeamercolor{lowcol}{fg=black,bg=yellow!40}
Then, with the call

Code: Select all

\begin{beamerboxesrounded}[upper=upcol,lower=lowcol,shadow=true]
test
\end{beamerboxesrounded}
it worked perfectly.

Cheers
Post Reply