# Beamer: Frame Number in Header in Frankfurt Theme

I use the theme frankfurt in my beamer presentations. At the same time, I use \setbeamertemplate{footline}[frame number]in order to get frame numbers.

In Frankfurtthe header is divided in two parts: on the top you see the sections, beneath you see the frame title. The frame number is displayed on the bottom right.

Recently, I saw a PowerPoint presentation where next to the headlines in the header the frame number was displayed.

My Question: Is it possible to include the frame number into the headline part of the header of the frankfurttheme on the right side? And how to do so?

WE

\documentclass[t]{beamer}
\usetheme{Frankfurt}
\usecolortheme{dove}
\setbeamercolor{titlelike}{parent=structure}
\usefonttheme{structuresmallcapsserif}
\setbeamercolor{frametitle}{bg=light-gray}
\definecolor{light-gray}{gray}{0.80}

\usepackage[ngerman]{babel} %dt. Silbentrennung
\usepackage[applemac]{inputenc} %Richtiges Sprach-Funktionieren am Mac

\begin{document}
\section{asdf}
\begin{frame}
\frametitle{Hund}
\end{frame}

\section{bsdf}
\begin{frame}
\frametitle{Katze}
\end{frame}

\section{csdf}
\begin{frame}
\frametitle{Maus}
\end{frame}

\end{document}


Following code shortens navigation line and includes page number on left side. Is this what you want?

\documentclass[t]{beamer}
\usetheme{Frankfurt}
\usecolortheme{dove}
\setbeamercolor{titlelike}{parent=structure}
\usefonttheme{structuresmallcapsserif}
\setbeamercolor{frametitle}{bg=light-gray}
\definecolor{light-gray}{gray}{0.80}

\usepackage[ngerman]{babel} %dt. Silbentrennung
\usepackage[applemac]{inputenc} %Richtiges Sprach-Funktionieren am Mac

\makeatletter
{%
\ifbeamer@sb@subsection%
\vskip-9.75ex%
\else%
\vskip-7ex%
\fi%
\end{beamercolorbox}%
\ifbeamer@sb@subsection%
\begin{beamercolorbox}[ignorebg,ht=2.125ex,dp=1.125ex,%
\end{beamercolorbox}%
\fi%
}%
\makeatother

\begin{document}
\section{asdf}
\subsection{abcd}
\begin{frame}
\frametitle{Hund}
\end{frame}

\section{bsdf}
\subsection{abcd}
\begin{frame}
\frametitle{Katze}
\end{frame}

\section{csdf}
\subsection{abcd}
\begin{frame}
\frametitle{Maus}
\end{frame}

\end{document}


• It is what I am looking for. However, is it possible to do a minor adjustment: Is it possible to include a frame number in the style of 2/33 (instead of 2) according to the \setbeamertemplate{footline}[frame number]. – Philip Feb 3 '16 at 10:43
• Yes, replace \insertframenumber with \insertframenumber/\inserttotalframenumber. – Ignasi Feb 3 '16 at 11:43
• I replaced \insertpagenumber with \insertframenumber/\inserttotalframenumber. And now it works. However, I have one more question: Is it possible to change the frame numbers to the same color as the headlines in the header. – Philip Feb 3 '16 at 13:15