I'm doing my presentation in beamer and I use warsaw theme. I have around 5-6 sections and they are all mentioned at the top of every page. This makes available frame space smaller. Can I limit this number by 3? For example, to show previous, current and next sections.
MWE:
\documentclass{beamer}
\mode<presentation>
{
\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10]
\usetheme{Warsaw}
\usefonttheme[onlysmall]{structurebold}
}
\begin{document}
\section{Test 1}
\begin{frame} \end{frame}
\section{Test 2}
\begin{frame} \end{frame}
\section{Test 3}
\begin{frame} \end{frame}
\section{Test 4}
\begin{frame} \end{frame}
\section{Test 5}
\begin{frame} \end{frame}
\end{document}
Best Answer
Version 1
Hi you could alter the macro which inserts the navigation list.
Version 2
This version provides a better fit to the size of three lines. Please note, that the height of the colored beamer box is adjusted manually.
Again the if structure picks the wanted entries. But in this case the box is only filled when needed. I also introduced two helper variables
c@p
andc@m
to avoid too complicated grouping. This renders to:and the following frame will look like this:
Version 3
Now featuring three navigation elements at any time:
It important to say that his is hard coded. This applies on 3 elements only and is not quite versatile. What it does is easy: it checks if the current frame is the first or last and inserts the navigation accordingly.
I want to add that this kind of navigation is very reader unfriendly. One has to look very carefully to understand it.
The first slide would look like this: