I'd like to highlight the current section in my table of contents on all slides which are part of the section. At the moment the section is only highlighted on the slides without subsections. (Highlighting means for me the color of the section in the table of contents is white)
\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}
% set fonts
\usepackage{xltxtra}
\usefonttheme{professionalfonts}
\setsansfont[
BoldFont={Helvetica Neue Medium},
ItalicFont={Helvetica Neue Italic},
BoldItalicFont={Helvetica Neue Medium Italic},
Ligatures=TeX
]{Helvetica Neue Light}
\setmonofont[Scale=0.9]{Menlo Regular}
% slide numbers in the bottom right corner
\setbeamertemplate{footline}{%
\hfill\usebeamertemplate***{navigation symbols}
\insertframenumber{}\hspace{3mm}\vspace{2mm}}
% removes navigation bar
\beamertemplatenavigationsymbolsempty
% color definitions
\definecolor{konzeBlue}{RGB}{45,170,250}
\definecolor{konzeBlueLight}{RGB}{116,199,252}
\definecolor{mainTextColor}{RGB}{80,80,80}
\definecolor{titleTextColor}{RGB}{120,120,120}
\makeatletter
% title page
\setbeamercolor{title}{fg=titleTextColor}
\setbeamercolor{author}{fg=mainTextColor}
\setbeamercolor{date}{fg=mainTextColor}
% sidebar
\setbeamertemplate{sidebar canvas right}[vertical shading][top=konzeBlue,bottom=konzeBlue]
\setbeamercolor{author in sidebar}{fg=white}
\setbeamercolor{section in sidebar}{fg=white}
\setbeamercolor{section in sidebar}{bg=konzeBlueLight}
\setbeamerfont{section in sidebar}{size=\tiny}
\setbeamerfont{section in sidebar}{series=\bfseries}
\setbeamercolor{subsection in sidebar}{fg=white}
\setbeamercolor{subsection in sidebar}{bg=konzeBlueLight}
\setbeamerfont{subsection in sidebar}{series=\tiny}
% slide number
\setbeamercolor{footline}{fg=white}
% frame
\setbeamercolor{frametitle}{fg=titleTextColor}
\makeatother
\title{Something}
\author{Max Mustermann}
\date{\today}
\begin{document}
\color{mainTextColor}
\section{Section}
\begin{frame}
Section slide
\end{frame}
\subsection{Subsection}
\begin{frame}
\frametitle{Subsection Slide}
Regular\\
\textbf{Bold}\\
\textit{Italic}\\
\textit{\textbf{Bold Italic}}\\
\texttt{Typewriter}\\
\[\int_a^b x^2\mathrm{d}x\]
This is $x$, $x$ is a variable.
\end{frame}
\end{document}
PS: I'm using xelatex for compilation
Best Answer
This can be done using a redefinition of
\insertverticalnavigation
to suppress a conditional (the lines commented out as marked using % NEW in the code below):I commented out the lines using the Helvetica fonts since I don't have that font in my system, but that's irrelevant for the solution.