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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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