[Tex/LaTex] How not to show subsection navigation bullets in the metropolis theme

beamerbeamer-metropolissectioning

I have two questions

  1. I am using the metropolis theme with a section indicator as suggested by samcarter (Adding section indicator to Metropolis theme?). But I don't want to show subsection bullet dots as I have many subsections and each dot for each frame of the subsections will overflow. So I want to show only section indicators.

  2. Also I want to put the section indicator at the bottom of frame instead of at the top.

Best Answer

\documentclass{beamer}

\usetheme{metropolis}

\setbeamertemplate{mini frame}{}
\setbeamertemplate{mini frame in current section}{}
\setbeamertemplate{mini frame in current subsection}{}

\makeatletter
\setbeamertemplate{footline}{%
  \begin{beamercolorbox}[colsep=1.5pt]{upper separation line head}
  \end{beamercolorbox}
  \begin{beamercolorbox}{section in head/foot}
    \vskip2pt\insertnavigation{\paperwidth}\vskip-2pt
  \end{beamercolorbox}%
  \begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
  \end{beamercolorbox}
}
\makeatother

\setbeamercolor{section in head/foot}{fg=normal text.bg, bg=structure.fg}

\begin{document}

\section{section 1}
\subsection{section name}
\begin{frame}
\frametitle{blub}
    abc
\end{frame} 
\begin{frame}
\frametitle{blub}
    abc
\end{frame} 

\section{section 2}
\begin{frame}
\frametitle{blub}
    abc
\end{frame} 

\section{section 3}
\begin{frame}
\frametitle{blub}
    abc
\end{frame}     

\end{document}

enter image description here


Second solution including framenumbers

\documentclass{beamer}

\usetheme{metropolis}

\setbeamertemplate{mini frame}{}
\setbeamertemplate{mini frame in current section}{}
\setbeamertemplate{mini frame in current subsection}{}

\makeatletter
\setbeamertemplate{footline}{%
  \begin{beamercolorbox}[wd=\textwidth, sep=3ex]{footline}%
    \usebeamerfont{page number in head/foot}%
    \usebeamertemplate*{frame footer}
    \hfill%
    \usebeamertemplate*{frame numbering}
  \end{beamercolorbox}%

  \begin{beamercolorbox}[colsep=1.5pt]{upper separation line head}
  \end{beamercolorbox}
  \begin{beamercolorbox}{section in head/foot}
    \vskip2pt\insertnavigation{\paperwidth}\vskip-2pt
  \end{beamercolorbox}%
  \begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
  \end{beamercolorbox}
}
\makeatother

\setbeamercolor{section in head/foot}{fg=normal text.bg, bg=structure.fg}

\begin{document}

\section{section 1}
\subsection{section name}
\begin{frame}
\frametitle{blub}
    abc
\end{frame} 
\begin{frame}
\frametitle{blub}
    abc
\end{frame} 

\section{section 2}
\begin{frame}
\frametitle{blub}
    abc
\end{frame} 

\section{section 3}
\begin{frame}
\frametitle{blub}
    abc
\end{frame}     

\end{document}