Document ClassesBeamer: Colors and Split theme

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
thomasTC
Posts: 12
Joined: Wed Jun 02, 2010 9:28 am

Beamer: Colors and Split theme

Post by thomasTC »

Hi there community :)

I was hoping that this community might once again help me with a minor issue.
I'm creating a presentation by use of Beamer, and I would like to use the Split theme as I am quite fond of the whole ToC-idea that this theme offers. However, after several uses of this theme, and noticing that many other at my university employ the exact same theme - with the exact same colors - I've decided that I want to change it a bit. Specifically, I would like to change the colors of the theme to match my university's colors. I've figured out - by searching through previous threads at this board - how to change the 'palette primary' colors:

Code: Select all

\definecolor{DTUred}{RGB}{178,20,20} 
\setbeamercolor*{palette primary}{use=structure,fg=white,bg=DTUred}
And that is great! It changes the upper right, lower left and box color of all the slides. However, I want to also change the lower left and upper left from black to some other color, say, gray. I figured there might exist a 'palette secondary' option or something similar, but it doesn't appear to change anything.

Below is a minimal working example:

Code: Select all

\documentclass{beamer}
\usetheme{Split}
\definecolor{DTUred}{RGB}{178,20,20} 
\setbeamercolor*{palette primary}{use=structure,fg=white,bg=DTUred}
%Stuff for the lower info-bar and titlepage
\title[My short title]{My long title}
\author{Thomas}

\begin{document}
\begin{frame}
\titlepage
\end{frame}
\end{document}
So, in conclusion: If anyone knows how to change the left-side colors of the infobars in the Split theme, I would be very very happy to hear from you.

Best regards,
Thomas

Recommended reading 2024:

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

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

ignasi
Posts: 20
Joined: Tue Jul 28, 2009 5:10 pm

Beamer: Colors and Split theme

Post by ignasi »

Hi,
I supose you use 'split' theme instead of 'Split'.
Look at beamerthemesplit.sty file, you will see that beamerouterthemesplit.sty and beamercolorthemewhale.sty are used.
In beamerouterthemesplit.sty you will find

Code: Select all

\setbeamercolor{section in head/foot}{parent=palette quaternary}
\setbeamercolor{subsection in head/foot}{parent=palette primary}

\setbeamercolor{author in head/foot}{parent=section in head/foot}
\setbeamercolor{title in head/foot}{parent=subsection in head/foot}
and in beamercolorthemewhale.sty

Code: Select all

\setbeamercolor*{palette quaternary}{fg=white,bg=black}
So, just change your quaternary palette and author and section will change it's background.

Code: Select all

\documentclass{beamer}
\usetheme{split}
\definecolor{DTUred}{RGB}{178,20,20} 
\setbeamercolor*{palette primary}{use=structure,fg=white,bg=DTUred}
\setbeamercolor*{palette quaternary}{use=structure,fg=white,bg=DTUred!30}
%Stuff for the lower info-bar and titlepage
\title[My short title]{My long title}
\author{Thomas}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{section1}
\subsection{subsection1}
\begin{frame}{Frame1}
\end{frame}
\subsection{subsection2}
\begin{frame}{Frame2}
\end{frame}
\end{document}
Please, read chapter 17 from beameruserguide, there you will find how to change any beamer color and how palettes work.

Ignasi
thomasTC
Posts: 12
Joined: Wed Jun 02, 2010 9:28 am

Re: Beamer: Colors and Split theme

Post by thomasTC »

Thank you very much Ignasi - you're suggestion worked like a charm. Excellent!

I had looked over chapter 16 and 17 prior to writing here - but could not figure out the details. I must not have looked closely enough: I'll give the manual another go at my next free opportunity.

Again, thank you!
LuckyDucky
Posts: 6
Joined: Thu Jul 01, 2010 9:10 pm

Beamer: Colors and Split theme

Post by LuckyDucky »

If you want to change all the colors quickly, you can use

Code: Select all

\definecolor{<namehere>}{RGB}{X,Y,Z}
\usecolortheme[named=<namehere>]{structure}
This will cause all of the colors in your presentation to be based on the color you defined.

I am trying to make a color theme for my school to but I want to customize the beamer elements specifically.
Post Reply