Page LayoutTitle Color as Background Color for Block Title

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
boschjesman
Posts: 9
Joined: Sat Nov 06, 2010 8:04 pm

Title Color as Background Color for Block Title

Post by boschjesman »

I'm making a poster with the beamer class and want to use the background color of the frame title that is defined by the color theme as the background color for my block titles. I found the \usebeamercolor command, but I can only get text to get the frame title color. I tried this:

Code: Select all

\documentclass{beamer}
\usetheme{Boadilla}
\usecolortheme{whale}

%\setbeamercolor{block title}{bg={\usebeamercolor[bg]{title}}}

\begin{document}

\begin{frame}{title}
  \begin{block}{test}
  \end{block}
\end{frame}

\end{document}
Is there a way to do this so that the background of the block titles get the color of the frame title as defined by the color theme?
Last edited by localghost on Wed Feb 06, 2013 1:29 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

boschjesman
Posts: 9
Joined: Sat Nov 06, 2010 8:04 pm

Re: Title Color as Background Color for Block Title

Post by boschjesman »

as it turns out it is quite simple. I just used structure.fg for my color input
Post Reply