I need to highlight specific entries of my beamer navigation according to highlighted entries within an overview figure. For this purpose, I need to redraw the navigation from within the frame environment. The problem: The current solution requires a manual adjustment of the alignment. What can be considered as hacky. A cleaner solution for the exact alignment at the original position would be highly appreciated. Big thx in advance for your ideas and suggestions!

\documentclass[t]{beamer}

\usetheme{Singapore}
\useoutertheme{miniframes}

\usepackage{tikz}
\usetikzlibrary{calc}

\begin{document}

\section{Section}
\subsection{Subsection}

\begin{frame}[c]
\frametitle{Title}
\framesubtitle{Subtitle}
%
\begin{beamerboxesrounded}[]{}
The intention is to redraw the navigation from \emph{within} the frame environment to e.\,g. allow highlights of specific sections. The problem: The current solution needs a manual adjustment of the alignment. What can be considered as hacky. A cleaner solution for the \emph{exact} alignment at the original position would be highly appreciated.
\end{beamerboxesrounded}
%
\begin{tikzpicture}[remember picture,overlay]%
{\node[anchor=north west,text width=\paperwidth] at ($(current page.north west) + (0ex,0ex)$) {%
\end{beamercolorbox}};}%
\end{tikzpicture}
%
\end{frame}

\end{document}

• Even after adding the obvious things like \documentclass{beamer}, \usepackage{tikz} and \begin{document}...\end{document} your code fragment does not compile nor would nor would it show any navigation bar. – user36296 Jul 30 '17 at 11:28
• @samcarter: Added MWE as requested ;) – Albert Jul 30 '17 at 19:43
• What exactly do you want to highlight? I am pretty sure redrawing the whole mini frames navigation is not the best way to do that, there might be other ways to achieve the highlighting using beamer templates, but it's hard to say without knowing your actual requirements. – diabonas Sep 29 '17 at 8:12
• @diabonas: My aim is to highlight specific sections (\alert<1>{Section 1}, \alert<2>{Section 2}, ...) according to an overview figure that is presented step by step. – Albert Oct 1 '17 at 14:45
• Ok, to make sure I've understood you correctly: you want to have one slide (\begin{frame}...\end{frame}) with multiple overlays where on each overlay you highlight a different (only one?) section in the navigation bar? How should the highlight look like, is it the same as if you were actually in this section (so simply in a darker blue font)? Which of the mini frames (the little circles below the section name) should be filled out? – diabonas Oct 1 '17 at 15:03

Partial solution

The following code reduces the manual spacing to only one dimension, but unless you use some technique like \tikzmark to actually record the position of the navigation bar, adjusting the spacing in vertical direction seems necessary, as the original navigation bar is not on the very top of the frame.

The original definition of the headline in the miniframe theme is

\defbeamertemplate*{headline}{miniframes theme}
{%
\end{beamercolorbox}
\end{beamercolorbox}%
\ifbeamer@theme@subsection%
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
\end{beamercolorbox}%
\fi%
\end{beamercolorbox}
}


As you can see, this definition includes

• manual spacing, e.g. the \vskip2pt
• a separation line at the top of the frame and
• the margins of the colorboxes

This space has to be somehow compensated.

\documentclass[t]{beamer}

\usetheme{Singapore}
\useoutertheme{miniframes}

\usepackage{tikz}
\usetikzlibrary{calc,positioning}

\begin{document}

\section{Section}
\subsection{Subsection}

\section{Section}
\subsection{Subsection}

\begin{frame}[c]
\frametitle{Title}
\framesubtitle{Subtitle}
%
\begin{beamerboxesrounded}[]{}
The intention is to redraw the navigation from \emph{within} the frame environment to e.\,g. allow highlights of specific sections. The problem: The current solution needs a manual adjustment of the alignment. What can be considered as hacky. A cleaner solution for the \emph{exact} alignment at the original position would be highly appreciated.
\end{beamerboxesrounded}
\begin{tikzpicture}[remember picture,overlay]%
{\node[text width=\paperwidth] at (current page.north) {%
\vskip13.25pt%