# LaTeX Beamer Warsaw Theme Custom Headline Horizontal ToC

I'm using beamer with the Warsaw theme to create a presentation. Now I want to change the header to display the sections and subsections next to each other instead of below each other.

The usual Warsaw theme:

What I'm looking for:

The respective subsections should be displayed in the blue stripe on the right. So actually the original theme only has to be changed from vertical to horizontal display of the sections and subsections.

I found this code that partly does what I'm looking for. But then the subsections will disappear.

\setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex]{palette quaternary}%
\end{beamercolorbox}%
}
}


Custom headline in LaTeX Beamer?

Thanks for your help!

• Welcome to TeX.Stackexchange! – user36296 May 12 '18 at 20:35

You can use the compress beamer option:

\documentclass[compress]{beamer}

\usetheme{Warsaw}

\begin{document}

\section{title}
\section{titlea}
\subsection{title}
\subsection{titlea}
\begin{frame}
abc
\end{frame}

\end{document}


• Thank you, but it works only when I remove the custom color. How can I use both [compress] and [xcolor] at the same time? \documentclass[compress][xcolor=dvipsnames]{beamer} \usepackage{graphicx} \usepackage{fancybox} \usetheme{Warsaw} \usecolortheme[named=MidnightBlue]{structure} \setbeamertemplate{caption}[numbered] \usepackage[T1]{fontenc} \usepackage[ansinew]{inputenc} \usepackage{inputenc} \usepackage{pgfpages} \usepackage{amsmath} – user162888 May 12 '18 at 20:46
• @Toffee \documentclass[compress,xcolor=dvipsnames]{beamer}  – user36296 May 12 '18 at 20:52
• @Toffee You don't need \usepackage{graphicx} with beamer – user36296 May 12 '18 at 20:52
• @Toffee You should also not load the same package more than once – user36296 May 12 '18 at 20:53