I like the intuitive navigation that smoothbars
provides. However, when the presentation has too many sections it is hard to display it nicely. In that case I would like to have a split header like infolines
.
Thus, how can I have the best of both worlds, have the navigation of smoothbars
and the split header of infolines
, like this:
I have the section in the left, and the navigation on the right. I searched, but without any success.
\documentclass{beamer}
\usetheme{Warsaw}
\useoutertheme[subsection=false]{smoothbars}
%\useoutertheme{infolines}
\begin{document}
\section{Test}
\subsection{test1}
\frame{one}
\subsection{test1}
\frame{one}
\section{Test 2}
\subsection{test1}
\frame{one}
\frame{two}
\subsection{test1}
\frame{one}
\section{Test 3}
\subsection{test1}
\frame{one}
\frame{three}
\subsection{test1}
\frame{one}
\end{document}
Best Answer
You can define your own navigation bar displaying only the mini frames of the current section for use in the
headline
template:The code of the navigation bar named
\insertframescurrentsection
is very similar to the default mini frame navigation (\insertnavigation
inbeamerbasenavigation.sty
) , I just removed the display of the section title and added a check to ensure that only the mini frames of the current section are displayed.This "bare" mini frames line is then used in the beamer template
headline
, which is a copy of theinfolines
headline with the display of the subsection name replaced by the custom navigation bar.