Document Classesbeamer colors

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
thrope
Posts: 9
Joined: Tue Jun 03, 2008 10:41 pm

beamer colors

Post by thrope »

Hi,

I'm having some real trouble setting colors with beamer. One frame I want to be white on black since it includes a video:

Code: Select all

{
\setbeamercolor{background canvas}{bg=black,fg=white} 
\frame
{
  \begin{centering}
  \includemovie[poster,mouse=true]{.6\linewidth}{0.6\linewidth}{dualStain.mov}\\
  \setbeamercolor{wonb}{bg=black,fg=white}
  { \usebeamercolor{wonb}
  \small caption text
}
  \end{centering}
}
}
This has a black background - but whatever I do I can't get the text to be white on black. I can't figure out any logic to how it works - one time I got white on blue, but I can't remember how now.

Can anyone give a clue as to how to make the text white?

Thanks

Recommended reading 2024:

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

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

propell
Posts: 44
Joined: Fri May 30, 2008 11:16 am

beamer colors

Post by propell »

I understand your frustration. It can be a bit difficult to understand how Beamer's template system works.

Try this:

Code: Select all

{
\setbeamercolor{background canvas}{bg=black,fg=white}
\usebeamercolor[fg]{background canvas}
\frame
{
  \begin{centering}
  \includemovie[poster,mouse=true]{.6\linewidth}{0.6\linewidth}{dualStain.mov}\\
  \small caption text
  \end{centering}
}
}
Intuitively setting the background canvas color should do the trick. However, it seems that the foreground color has already been initialized when you use the \setbeamercolor macro. You therefore need to initialize it again.

Hope this helps!

- Kjell Magne Fauske
Post Reply