# Move \insertnavigation to the left in later sections in beamer footer [closed]

I am inserting the list of section names in the footer using:

\vskip2pt\insertnavigation{\paperwidth}\vskip-2pt


The complete code for the footer (using the metropolis theme) is

\makeatletter
\setbeamertemplate{footline}{%
\begin{beamercolorbox}[wd=\textwidth, sep=3ex]{footline}%
\usebeamertemplate*{frame footer}
\hfill%
\usebeamertemplate*{frame numbering}
\end{beamercolorbox}%

\end{beamercolorbox}
\end{beamercolorbox}%
\end{beamercolorbox}
}
\makeatother


However I have too many sections and it escapes the end of the footer. See picture of slide:

To fix this I would like to move the navigation to the left as the current section increases. Something like:

\vskip-{\sectionnumber}pt\insertnavigation{\paperwidth}\vskip-2pt


where \sectionnumber is the number of the current section (made up the command).

• Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. Sep 15 '20 at 19:36