I want to use the color template "block title bg" to make a box around the title of my presentation. My code is \setbeamercolor{title}{bg=block title.bg}
but I get the error Package xcolor Error: Undefined color 'block title.bg'
. I've been trying what says here and here, but without results. I tried at some point \setbeamercolor{title}{bg=\usebeamercolor[bg]{block title}}
and the document compiled succesfully but without the colored box around the title. Any suggestions? Thanks in advance!
EDIT: I'd also like to know where to find the appropriate list of colors and templates. The Beamer Appearance Cheat sheet provides the names but not the .fg for using in these cases. Also, MWE:
\documentclass{beamer}
\mode<presentation>
{
\usetheme{Pittsburgh}
\usecolortheme{rose}
\useinnertheme{rounded}
\setbeamercovered{invisible} %hace que no se vea lo que está después del pause
\setbeamercolor{titlelike}{bg=block title.bg}
=white,bg=Blue!650}%
}
\usepackage[utf8]{inputenc}
\begin{document}
\title{fancy title}
\author{John Doe}
\date{some day}
\institute{some university}
\maketitle
\begin{frame}
{fancy title}
some text
\begin{theorem}
foo bar
\end{theorem}
\end{frame}
\end{document}
Sorry for the crammed example, but I don't know how to insert line breaks (mea maxima culpa).
Best Answer
To copy both
fg
andbg
parts of another beamer color you can use theparent
option of\setbeamercolor
as in:Instead, if you want to copy only one part, or simply use it in a color expression (like mixing it with another color), you can employ the option
use
. In your case: