# Beamer: How to add progress bar with section titles?

Many presentations include some kind of a visualizer where the listeners can easily see how far the presentation has gone.

A great option to do so is adding a progress bar into the slide layout.

Minimum Working Example (MWE):

The user Gonzalo Medina has posted a nice approach on how to display a triangle above a line:

\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{calc}

\definecolor{pbgray}{HTML}{575757}% background color for the progress bar

\makeatletter
\def\progressbar@progressbar{} % the progress bar
\newcount\progressbar@tmpcounta% auxiliary counter
\newcount\progressbar@tmpcountb% auxiliary counter
\newdimen\progressbar@pbht %progressbar height
\newdimen\progressbar@pbwd %progressbar width
\newdimen\progressbar@tmpdim % auxiliary dimension

\progressbar@pbwd=\linewidth
\progressbar@pbht=1pt

% the progress bar
\def\progressbar@progressbar{%

\progressbar@tmpdim=\progressbar@pbwd
\multiply\progressbar@tmpdim by \progressbar@tmpcounta
\divide\progressbar@tmpdim by \progressbar@tmpcountb

\begin{tikzpicture}[very thin]
\draw[pbgray!30,line width=\progressbar@pbht]
(0pt, 0pt) -- ++ (\progressbar@pbwd,0pt);
\draw[draw=none]  (\progressbar@pbwd,0pt) -- ++ (2pt,0pt);

\draw[fill=pbgray!30,draw=pbgray] %
( $(\progressbar@tmpdim, \progressbar@pbht) + (0,1.5pt)$ ) -- ++(60:3pt) -- ++(180:3pt) ;

\node[draw=pbgray!30,text width=3.5em,align=center,inner sep=1pt,
\end{tikzpicture}%
}

{%
\begin{beamercolorbox}[wd=\paperwidth,ht=5ex,center,dp=1ex]{white}%
\progressbar@progressbar%
\end{beamercolorbox}%
}
\makeatother

\begin{document}

\section{Introduction}

\begin{frame}
\frametitle{Introduction}
test
\end{frame}

\section{Motivation}

\begin{frame}
\frametitle{Motivation}
test
\end{frame}

\section{Methodology}

\begin{frame}
\frametitle{Experiments}
test
\end{frame}

\begin{frame}
\frametitle{Statistics}
test
\end{frame}

\section{Results}

\begin{frame}
\frametitle{Results 1}
test
\end{frame}

\begin{frame}
\frametitle{Results 2}
test
\end{frame}

\section{Conclusion}

\begin{frame}
\frametitle{Conclusion}
test
\end{frame}

\end{document}


Question:

This looks nice indeed, but I would prefer to add the section titles into the timeline as well.

Hereby you can see:

• Introduction and Motivation has already been presented
• Methodology is currently presented
• Results and Conclusion will be presented afterwards

Would it be possible to extend the code so the section titles will appear in the timeline as well?

• Less florid, but that's just what some themes as like Berlin, Darmstadt or Berkeley do. Anyway, I doubt of the benefits of any progress bar. The bars take a valuable space (except maybe using one as discrete as in the metropolis theme) and overall, is distracting. Do you want people focused on your dissertation or in how many sections rest to leave? – Fran Aug 11 '19 at 10:04