I am trying to change the color of the current section separately from the other sections in the headline of beamer, generated through the insertsectionnavigationhorizontal command. However I cannot find the appropriate template, as section in head/foot changes the color of all sections and the non-current sections have a different shape. This is my MWE and obviously current section in head/foot does not exist.

\setbeamertemplate{headline}{\insertsectionnavigationhorizontal{\paperwidth}{\hskip0pt plus1filll}{}}

\setbeamercolor{section in head/foot}{fg=gray}
\setbeamercolor{current section in head/foot}{fg=red}

\section{First section}
Slide 1

Slide 2

\section{Second section}
Slide 3

\section{Third section}
Slide 4

Do you have an idea how I can format the current section differently from the others?

1 Answer 1


After some more investigation I found, that there is no special color for it, the template section in head/foot shaded is used, but uses a mixed color of bg and fg. So to highlight the current section and select a different color, you need to redefine it:

\setbeamercolor{section in head/foot}{fg=red}
\setbeamertemplate{section in head/foot shaded}{\color{gray}\usebeamertemplate{section in head/foot}}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .