0

I'm using the Warsaw template for beamer class. I would like that the color of the left heading of my presentation vary by section (each section has a customised color.
I saw a solution here: Changing color in beamer header (Singapore) However, this is adapted to Singapore theme and is very customised. Is there any help, please.

2

You can set the section in head/foot color from section to section:

\documentclass{beamer}
\usetheme{Warsaw}

\begin{document}

\setbeamercolor{subsection in head/foot}{bg=blue!50!black}
\section{sec1}
\subsection{sub1}   
\begin{frame}
    abc
\end{frame} 

\setbeamercolor{subsection in head/foot}{bg=red!50!black}
\section{sec2}
\subsection{sub2}   
\begin{frame}
    abc
\end{frame} 

\end{document}

You can even make the colour change automatic:

\documentclass{beamer}
\usetheme{Warsaw}

\definecolorseries{foo}{rgb}{last}{red}{blue}
\resetcolorseries[3]{foo}

\AtBeginSection[]{%
    \setbeamercolor{subsection in head/foot}{bg=foo!![\thesection]}
}

\begin{document}

\section{sec1}
\subsection{sub1}   
\begin{frame}
    abc
\end{frame} 

\section{sec2}
\subsection{sub2}   
\begin{frame}
    abc
\end{frame} 

\section{sec3}
\subsection{sub3}   
\begin{frame}
    abc
\end{frame}

\end{document}

enter image description here

  • thank you very much for the quick answer, however, I want to modify the right part color, not the left one. So, each subsection group has the same color. Thank you again – Bey Rout Nov 24 '17 at 21:51
  • @BeyRout Upps! Please see my edited answer. – user36296 Nov 24 '17 at 22:02
  • A last question please, how can I customise the color series to pick exactly some defined colors! – Bey Rout Nov 24 '17 at 22:40
  • and I saw that you gave once a solution to change section subsection font size for the active slide. But, I don't figure out how to adapt it to my case. Can you please help me to do it. Thank you very much – Bey Rout Nov 24 '17 at 23:40
  • @BeyRout Colour series only interpolate between the first and the last colour. If you want other colours, do it manually like in my first solution. – user36296 Nov 24 '17 at 23:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.