# Frankfurt theme show total number of slides

In the Frankfurt theme, beamer package, by default in the bottom right corner is shown the page number. How can I change this so that it not only shows the page number, but also the total number of pages (e.g. 5/30)?

With package: \usepackage{lastpage}

you can have the number of the last page with \pageref{LastPage}.

By default, in Frankfurt theme, footline beamer-template is empty. In your preamble, try \setbeamertemplate{footline}[page number] or \setbeamertemplate{footline}[frame number] (with some versions of beamer before 3.51, you must also fix the color used to typeset the page number or frame number).

\documentclass{beamer}
\usetheme{Frankfurt}
\setbeamertemplate{footline}[page number]
% \setbeamertemplate{footline}[frame number]
\setbeamercolor{page number in head/foot}{fg=fg} % beamer version < 3.51
\begin{document}
\section{First}
\begin{frame}
\frametitle{Demo 1}
\begin{itemize}
\item<+->first item
\item<+->second item
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Demo 2}
\begin{itemize}
\item<+->first item
\item<+->second item
\end{itemize}
\end{frame}
\end{document}

• This code isn't showing any page numbers on my system (pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian)). Any idea why not? Aug 23, 2018 at 3:09
• @tparker I updated my answer... Aug 23, 2018 at 5:31
• Thanks, now it works! A bit silly that they now require a font color... Aug 23, 2018 at 5:40
• @tparker This bug is already fixed, see github.com/josephwright/beamer/commit/…. Can you update to beamer version 3.51, available at ctan.org/pkg/beamer Aug 23, 2018 at 8:02