1

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.

5

1 Answer 1

4
\documentclass{beamer}

\usetheme{moloch}% modern fork of the metropolis theme

\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{moloch}% modern fork of the metropolis theme

\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}%
    \hfill%
    \usebeamertemplate*{page number in head/foot}
  \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}

enter image description here

8
  • This option of navigation is good but it is covering the slide numbers how to shift slide numbers little up. Commented Sep 11, 2017 at 15:27
  • @ShivugpKumar see my edit Commented Sep 11, 2017 at 15:32
  • Sorry I didn't understand. what do you mean by "see my edit Commented Sep 11, 2017 at 16:13
  • @ShivugpKumar Please see the additional second solution in my answer. I hope it solves your framenumber problem Commented Sep 11, 2017 at 16:16
  • Thank you very much, how it should be modified to show slide numbers in fraction (like 1/5). Commented Sep 12, 2017 at 5:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .