This answer gave me the clue (thanks to @AndrewUzzel).
Splitting in two parts and using two tocs solved it, however spacing needs to be adjusted.
Here is the miminal example:
\documentclass{beamer}
\begin{document}
\part{one}
\section{Section1}
\part{two}
\section{Section2}
\frame{
\tableofcontents[part=1,currentsection]\tableofcontents
}
\section{Section3}
\frame{}
\end{document}
Beamer appearance cheat sheet
is a very useful cheat sheet when it comes to customize the look of beamer documents. To get the layout you are interested in, I would modify the template for the headline as follows:
\setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex]{palette quaternary}%
\insertsectionnavigationhorizontal{\paperwidth}{}{\hskip0pt plus1filll}
\end{beamercolorbox}%
}
}
The command insertsectionnavigationhorizontal
does all the magic. The remaining code just puts all the sections within a colored box of width paperwidth
.
Note that the insertsectionnavigationhorizontal
command takes three parameters: the width of the box, material that is inserted to the left, and material that is inserted to the right. In this case, nothing goes to the left and an expandable space goes to the right, making the section names left justified. If you want centered section titles, just copy the third argument into the second:
\insertsectionnavigationhorizontal{\paperwidth}{\hskip0pt plus1filll}{\hskip0pt plus1filll}
The setting of the template goes before the \begin{document}
, and after all themes have been loaded.
Beamer create own headline theme is also a related question in TeXSX.
EDIT
There are errors in your theme file: you forgot to close the last beamercolorbox
and the overall hbox
. Add these lines before the vskip0pt
:
\end{beamercolorbox}}
(yes that's a double brace, the last one closes the hbox
). This is how the header looks like:
Best Answer
Yes, it is possible; not trivial, but possible:
(I will add some explanation when I have time)
And some images showing the result with the vertical rules: