I'd like to change the color of beamer sidebar, however I don't know which parameter \setbeamercolor{}{}
wants for the sidebar color. I'm using \usepackage{xcolor}
and specify my own colors like that: \definecolor{myBlue}{RGB}{45,170,250}
.
My tex compiler is xelatex
Here is my tex file:
\documentclass{beamer}
% beamer theme
\usetheme{Marburg}
% german spelling
\usepackage[english,ngerman]{babel}
% set font encoding
\usepackage[T1]{fontenc}
% math stuff
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
% color
\usepackage{xcolor}
% set font to Helvetica Light
\usepackage{xltxtra}
\setsansfont[Ligatures=TeX]{Helvetica Light}
\title{Präsentation}
\author{Max Mustermann}
\date{\today}
% removes navigation bar
\beamertemplatenavigationsymbolsempty
\begin{document}
\begin{frame}
\frametitle{Ein Demotitel}
abcdefghijklmnopqrstuvwxyz äöüß 1234567890
ABCDEFGHIJKLMNOPQRSTUVWXYZ
\end{frame}
\end{document}
Best Answer
If you want to know which
beamer
colors are used in certain theme, look at its definition style file,beamerthemeMarsburg.sty
in this case. There you will see:which means that this theme uses color theme
whale
and thatsidebar
has avertical shading
based in colorspalette quaternary.bg
andpalette primary.bg
.Now you have two possibilities, change
palette
definitions or just changesidebar
definition. You must use the first one in case you want to be sure that every template based on this color is also change. If you just want to change sidebar background it's enough to addin your preamble. Of course, if your side bar is on the left, change
right
byleft
. The result looks like:The complete code is:
Notes:
beamer
already loadxcolor
, you can delete\usepackage{xcolor}
from your preamble.Result of
\listfiles
command