# Color of the navigation bar in beamer (theme Goettingen)

How can I change the color of the navigation bar in beamer? I am using "Goettingen" theme. I tried several changes, but that did not work...

CODE:

\documentclass{beamer}

\usepackage[british]{babel}
\usepackage{graphicx,hyperref,url}
\usepackage{color}
\usetheme[left]{Goettingen}

\begin{document}

\begin{frame}
\frametitle{Outline}

\tableofcontents
\end{frame}

\section{Introduction}

\begin{frame}
\frametitle{Introduction}

\begin{itemize}
\item This is just a short example
\item The comments in the \LaTeX\ file are most important
\item This is just the result after running pdflatex
\end{itemize}
\end{frame}

\section{Background information}

\begin{frame}
\frametitle{Background information}

\begin{block}{Slides with \LaTeX}
Beamer offers a lot of functions to create nice slides using \LaTeX.
\end{block}

\begin{block}{The basis}
This style uses the following default styles:
\begin{itemize}
\item split
\item whale
\item rounded
\item orchid
\end{itemize}
\end{block}
\end{frame}

\section{The important things}

\begin{frame}
\frametitle{The important things}

\begin{enumerate}
\item This just shows the effect of the style
\item It is not a Beamer tutorial
\item Read the Beamer manual for more help
\item Contact me only concerning the style file
\end{enumerate}
\end{frame}

\section{Analysis of the work}

\begin{frame}
\frametitle{Analysis of the work}

When you know how to work with the Beamer package it is easy to use.
\end{frame}

\section{Conclusion}

\begin{frame}
\frametitle{Conclusion}

\begin{itemize}
\item Easy to use
\item Good results
\end{itemize}
\end{frame}

\end{document}

• I remember you can use outer color theme. They are color themes for headline, footline, and sidebar. Another way is changing the templates, information about this, is in beamer guide by Till Tantau – juanuni May 21 '15 at 15:29

I am unsure which colors of the different navigation components you want to change, so let me go through some of them.

• The color of the navigation symbols can be changed using:

\setbeamercolor{navigation symbols}{fg=red, bg=green}

• The color of the navigation panel you can change by putting

\setbeamercolor{structure}{fg=red}


before \usetheme[left]{Goettingen}. Notice, however, that the colour will still be washed out, fading from top to bottom.

• You can change the color of the titles in the navigation bar using

\setbeamercolor{palette sidebar secondary}{fg=yellow,bg=blue}


The secondary colors are the ones currently active.

I am not advocating these particular choices, especially since this is what they do:

Here is the code that produced this image:

\documentclass{beamer}

\usepackage[british]{babel}
\usepackage{graphicx,hyperref,url}
\usepackage{color}
\setbeamercolor{structure}{fg=red}
\usetheme[left]{Goettingen}

\setbeamercolor{palette sidebar secondary}{fg=yellow,bg=blue}

\begin{document}

\begin{frame}{Outline}\tableofcontents \end{frame}

\section{Introduction}\begin{frame}{Introduction}\end{frame}

\section{Background}\begin{frame}{Background}\end{frame}
\end{document}


Finally, it is possible to have more than one color in the side bar by placing

\makeatletter
\setbeamertemplate{sidebar canvas \beamer@sidebarside}%
\makeatother


after you have set the color them. Splicing this into the MWE above yields:

Again, pretty as they may be, I don't recommend any of these colors.

When you want to change anything from a beamer theme I'd suggest to take a look at original theme definition file (beamerthemeGoettingen.sty in this case). There you'll see what other themes (innr, outer, font, ...) are used and which templates do you need to change.

Goettingen theme file is only 34 lines long and only load and customizes side bar outer theme. At the end of the file you'll find

\setbeamertemplate{sidebar canvas \beamer@sidebarside}[vertical shading]
[top=structure.fg!25,bottom=structure.fg!10]


which means that the color for sidebar is structure. So if you want to change it, something like

\setbeamercolor{structure}{fg=red}


as Andrew suggested would do it. But a lot of beamer theme elements are based in structure color, so if you change it, everything else will do it. As an example, look at navigator symbols in Andrew's answer figures. They are red because structure was changed.

If I just wanted to change only sidebar background color, I'd insert

\makeatletter
\makeatother


in my preamble. The result would be

\documentclass{beamer}

\usepackage[british]{babel}
\usepackage{graphicx,hyperref,url}
\usepackage{color}
\usetheme[left]{Goettingen}

\makeatletter
\makeatother

\begin{document}

\begin{frame}
\frametitle{Outline}

\tableofcontents
\end{frame}

\section{Introduction}

\begin{frame}
\frametitle{Introduction}

\begin{itemize}
\item This is just a short example
\item The comments in the \LaTeX\ file are most important
\item This is just the result after running pdflatex
\end{itemize}
\end{frame}

\section{Background information}

\begin{frame}
\frametitle{Background information}

\begin{block}{Slides with \LaTeX}
Beamer offers a lot of functions to create nice slides using \LaTeX.
\end{block}

\begin{block}{The basis}
This style uses the following default styles:
\begin{itemize}
\item split
\item whale
\item rounded
\item orchid
\end{itemize}
\end{block}
\end{frame}

\section{The important things}

\begin{frame}
\frametitle{The important things}

\begin{enumerate}
\item This just shows the effect of the style
\item It is not a Beamer tutorial
\item Read the Beamer manual for more help
\item Contact me only concerning the style file
\end{enumerate}
\end{frame}

\section{Analysis of the work}

\begin{frame}
\frametitle{Analysis of the work}

When you know how to work with the Beamer package it is easy to use.
\end{frame}

\section{Conclusion}

\begin{frame}
\frametitle{Conclusion}

\begin{itemize}
\item Easy to use
\item Good results
\end{itemize}
\end{frame}

\end{document}

• Actually, the navigation symbols are red because I made them that way using \setbeamercolor{navigation symbols}{fg=red, bg=green}. Of course, you are right as without this they would be pale red in my example. For what it's worth, I referred to the sidebar canvas at the end of my post. – Andrew May 22 '15 at 9:16
• @Andrew Yes, you changed them, but even without doing it, if you change structure color, navigator symbols, titles, ... will also change. i think that unless you know what's affected by structure color, it's better not to touch it. – Ignasi May 22 '15 at 10:13