# Hyperlinks buttons on a second layer with respect to the contents of the frame

In the following frame, the footline with hyperlinks buttons overlap with two images:

Is there a way to declare in the preamble the hyperlink's footline to be in a second layer (background) respect to the content on each slide?

Code:

\documentclass{beamer}
%
%
\usepackage[english]{babel}
\usepackage{multirow}
\usepackage{amsmath}
\usepackage[]{hyperref}
\newcommand{\btVFill}{\vskip0pt plus 1filll}

\usepackage{totcount}
\regtotcounter{section}

\newcommand\Fontvi{\fontsize{6}{5.2}\selectfont}

% Format of the title of every section:
\AtBeginSection[]{\label{sec:\thesection}
\begin{frame}{Outline}
\tableofcontents[
currentsection,
]
\end{frame}
}

\newcounter{prevsec}

% Create footline:
\setbeamertemplate{footline}{%
\setcounter{prevsec}{\thesection}
\ifnum\theprevsec>1
\fi

\ifnum\thesection<\totvalue{section}%
\else%
\fi%
\vspace*{0.2cm}%
}

% Outline at the beginning of each subsection:
\AtBeginSubsection[]
{
\begin{frame}{Outline}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}

% Outline at the beginning of each subsubsection:
\AtBeginSubsubsection[]
{
\begin{frame}{Outline}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}

\begin{document}

\section{sec1}
\begin{frame}%{ss}
1st section/ page 1 out of 1
\end{frame}

\begin{frame}
1st section/ page 2 out of 2
\end{frame}

\begin{frame}[label=Detailed_Analysis]
Detailed Analysis
\end{frame}

\section{sec2}

\def\Blablabla{

%Some text, some text some text
\begin{enumerate}
\Fontvi
\item Some text: Some info
\item Some other text: Some other info
\end{enumerate}
}
%
\begin{frame}%[plain]
%
\begin{table}
\centering
%\vspace{-1em}
\begin{tabular}{c|c|c|c|c}
$A$ & $B$ & $C$ & $D$ and $E$  \\\hline
$1.1$ & $1.2$ & $1.3$ & $1.4$ & $1.5$
\end{tabular}
%\caption{\label{tab:widgets}An example table.}
\end{table}
\vspace{-0.5em}
%
\centering
\includegraphics[width=.48\linewidth]{example-image}
\begin{minipage}[b][0.4\textheight][c]{.45\linewidth} \Blablabla \end{minipage}\\[1em]
\includegraphics[width=.48\linewidth]{example-image}
\end{frame}

\section{sec3}
\begin{frame}
3rd section
\end{frame}

\begin{frame}
More content on the 3rd section
\end{frame}

\begin{frame}
Even More content on the 3rd section
\end{frame}

\end{document}


Update: The above code posted in the question has the functionality of displaying the outline every time we change section. When displaying that outline, it is also possible to jump to the selected section by clicking on it. For example, if we have finished section 1, the next slide is the outline highlighting the upcoming section 2, and also there is the possibility to click on the faded section 3 to jump to section 3:

By using @samcarter answer, now the outline still appears when beginning a new section, but the functionality of clicking on the name of the section to jump to that section is disabled, as shown in this code 2:

\usepackage[english]{babel}
\usepackage{multirow}
\usepackage{amsmath}
\newcommand{\btVFill}{\vskip0pt plus 1filll}

\usepackage{totcount}
\regtotcounter{section}

\newcommand\Fontvi{\fontsize{6}{5.2}\selectfont}

\newcounter{prevsec}

\setbeamertemplate{footline}{}

\makeatletter
\setbeamertemplate{sidebar canvas left}
{%
\tiny%
\leavevmode%
\hbox{%
\rule{0pt}{.99\paperheight}%
\setcounter{prevsec}{\thesection}
\ifnum\theprevsec>1
\fi

\ifnum\thesection<\totvalue{section}%
\else%
\fi%
\vspace*{0.2cm}%
}%
\vskip0pt%
}
\makeatother
%
% Outline at the beginning of every section:
\AtBeginSection[]{\label{sec:\thesection}
\begin{frame}{Outline}
\tableofcontents[
currentsection,
]
\end{frame}
}

% Outline at the beginning of each subsection:
\AtBeginSubsection[]
{
\begin{frame}{Outline}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}

% Outline at the beginning of each subsubsection:
\AtBeginSubsubsection[]
{
\begin{frame}{Outline}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}

\begin{document}

\section{sec1}
\begin{frame}%{ss}
1st section/ page 1 out of 1
\end{frame}

\begin{frame}
1st section/ page 2 out of 2
\end{frame}

\begin{frame}[label=Detailed_Analysis]
Detailed Analysis
\end{frame}

\section{sec2}

\def\Blablabla{

%Some text, some text some text
\begin{enumerate}
\Fontvi
\item Some text: Some info
\item Some other text: Some other info
\end{enumerate}
}
%
\begin{frame}%[plain]
%
\begin{table}
\centering
%\vspace{-1em}
\begin{tabular}{c|c|c|c|c}
$A$ & $B$ & $C$ & $D$ and $E$  \\\hline
$1.1$ & $1.2$ & $1.3$ & $1.4$ & $1.5$
\end{tabular}
%\caption{\label{tab:widgets}An example table.}
\end{table}
\vspace{-0.5em}
%
\centering
\includegraphics[width=.48\linewidth]{example-image}
\begin{minipage}[b][0.4\textheight][c]{.45\linewidth} \Blablabla \end{minipage}\\[1em]
\includegraphics[width=.48\linewidth]{example-image}
\end{frame}

\section{sec3}
\begin{frame}
3rd section
\end{frame}

\begin{frame}
More content on the 3rd section
\end{frame}

\begin{frame}
Even More content on the 3rd section
\end{frame}

\end{document}


Update 2: In addition to this, the pdf generated with code 2 seems to have wrong linking functionalities, e.g. if I open the pdf on page 2, if I locate the mouse somewhere about the right area, a Go to page 1 info appears:

and if I do click, I am redirected to page 1.

This was uing okular. The same happens if I open the document with evince:

The buttons seem to be still click-able, however you'll have to guess where they are.

\documentclass{beamer}

\usepackage{totcount}
\regtotcounter{section}

\newcounter{prevsec}

\setbeamertemplate{footline}{}

% Format of the title of every section:
\AtBeginSection[]{\label{sec:\thesection}
\begin{frame}{Outline}
\tableofcontents[
currentsection,
]
\end{frame}
}

\makeatletter
\setbeamertemplate{sidebar canvas left}{%
\begin{minipage}[t][.98\paperheight][b]{\textwidth}
\tiny%
\setcounter{prevsec}{\thesection}
\ifnum\theprevsec>1
\fi
\ifnum\thesection<\totvalue{section}%
\else%
\fi%
\end{minipage}
}
\makeatother

\begin{document}

\section{sec1}
\begin{frame}%{ss}
1st section/ page 1 out of 1
\end{frame}

\begin{frame}
1st section/ page 2 out of 2
\end{frame}

\begin{frame}[label=Detailed_Analysis]
Detailed Analysis
\end{frame}

\section{sec2}
%
\begin{frame}%[plain]
%
\begin{table}
\centering
%\vspace{-1em}
\begin{tabular}{c|c|c|c|c}
$A$ & $B$ & $C$ & $D$ and $E$  \\\hline
$1.1$ & $1.2$ & $1.3$ & $1.4$ & $1.5$
\end{tabular}
%\caption{\label{tab:widgets}An example table.}
\end{table}
\vspace{-0.5em}
%
\centering
\includegraphics[width=.48\linewidth]{example-image}
\begin{minipage}[b][0.4\textheight][c]{.45\linewidth} \end{minipage}\\[1em]
\includegraphics[width=.48\linewidth]{example-image}
\end{frame}

\section{sec3}
\begin{frame}
3rd section
\end{frame}

\begin{frame}
More content on the 3rd section
\end{frame}

\begin{frame}
Even More content on the 3rd section
\end{frame}

\end{document}


• Thank you very much for your answer. However, the functionality of clicking on the desired section in the outline has been disabled. Please see updated post for a detailed explanation – DavidC. Feb 11 '18 at 14:12
• @DavidC. To rule out possible causes of your problem: Could you test if the link in the following pdf work for you? dropbox.com/s/vmsydclxrp9utzx/document2.pdf?dl=0 – samcarter is at topanswers.xyz Feb 11 '18 at 20:02
• @DavidC. I'll try to make a MNWE and report back. – samcarter is at topanswers.xyz Feb 18 '18 at 21:29
• @DavidC. Can you please test if my updated code works for you? – samcarter is at topanswers.xyz Feb 18 '18 at 21:59
• @DavidC. Yes, the minipage is new. Not really sure, but I think the following was the problem: In the previous code I used a dirty hack to move the buttons to the end of the page by inserting an invisible rule at the start of the line. This effectively made the line as heigh as the total page. Some viewer seems to have a problem with this... – samcarter is at topanswers.xyz Feb 18 '18 at 22:49