MWE :
Considering the following minimal working example :
\documentclass{beamer}
\usetheme{CambridgeUS}
\begin{document}
\section{Section1}
\subsection{Subsection1}
\begin{frame}
\end{frame}
\subsection{Subsection2}
\begin{frame}
\end{frame}
\end{document}
Which renders as follow :
Question :
I would like to remove the automatic content placed on header right (the subsection
content) and place there instead some dots counting how many slides remain for the current section
.
By dots I mean :
- the number of dots tells how much slides we have for the section (not considering the pauses!) ;
- if they are white full, we read the slides
- if it is empty :
- empty in white, we are reading it ;
- if they are empty grey, we didn't read them yet.
It seems that it exists already :
I have seen these kind of dots on some other themes like Frankfurt :
(source : http://www.hartwork.org/beamer-theme-matrix/)
I guess it can be exploited, but I am not expert enough in latex to do it.
Example of the expected display :
On this example, we have 6 pages for this Section1, and we are currently on the second page for this section.
(Of course the background doesn't have to be black, it's just a bad edit made by hand)
Summary :
How can I place these dots instead of the subsection on this CambridgeUS theme ? Is this possible to integrate the Frankfurt code regarding these dots inside CambridgeUS theme ?
Thanks in advance for your help.
Best Answer
This is an alternative approach that tries to embed the actual mini frame navigation from the Frankfurt theme into the Cambridge theme. It requires major surgery and I'd suggest to make a custom theme with it.
First we need to set the miniframes color, I picked the
darkred
color from thebeaver
theme to match the rest of the theme.\setbeamercolor{mini frame}{fg=darkred}
Now the tricky part: we are going to take the code from
\insertsubsectionnavigationhorizontal
, remove its own\slideentry
macro and add the one taken from thebeamerbasenavigation.sty
file. Since myetoolbox
fu is not good enough I'll just post the whole modified\slideentry
. For code readability etc. this should be placed in another file or done withetoolbox
.The last step is to re-set the headline template so that it calls our customized horizontal miniframes navigation:
Result.
It works exactly as the Frankfurt miniframe nav. since it actually is the Frankfurt miniframe nav.
Full MWE.