1

How can I add frame numbers in the footline (below institute) of the beamer theme berlin without deleting author, title or institute?

My code:

\documentclass{beamer}

\usepackage[utf8]{inputenc}
\usepackage{bookmark,hyperref}
\hypersetup{bookmarksdepth=4,bookmarksnumbered=true,bookmarksopen=true}
\usetheme[compress]{Berlin}
\usefonttheme{structuresmallcapsserif}\usecolortheme{rose}
\setbeamerfont{section in head/foot}{size=\tiny}


\title{Title of My Presentation}
\subtitle{My Subtitle}
\author{My Name}
\institute{My Institute}
\date{01. Januar 1111}


\begin{document}

\frame{\titlepage}

\end{document}

where the slide number should be

3
\documentclass{beamer}

\usepackage[utf8]{inputenc}
\usepackage{bookmark}
\hypersetup{bookmarksdepth=4,bookmarksnumbered=true,bookmarksopen=true}
\usetheme[compress]{Berlin}
\usefonttheme{structuresmallcapsserif}\usecolortheme{rose}
\setbeamerfont{section in head/foot}{size=\tiny}


\title{Title of My Presentation}
\subtitle{My Subtitle}
\author{My Name}
\institute{My Institute}
\date{01. Januar 1111}

\makeatletter
  \setbeamertemplate{footline}{%
    \begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
    \end{beamercolorbox}
    \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
      leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
      \leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}%
      \hfill%
      {\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}%
    \end{beamercolorbox}%
    \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
      leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
      {\usebeamerfont{title in head/foot}\insertshorttitle\hfill\insertframenumber}%
    \end{beamercolorbox}%
    \begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
    \end{beamercolorbox}
  }
\makeatletter


\begin{document}

\frame{\titlepage}

\end{document}

enter image description here


In the current development version of beamer (and probably included in released versions starting with v. 3.50) this answer can be simplified to:

\documentclass{beamer}

\usetheme[compress]{Berlin}
\setbeamertemplate{page number in head/foot}[framenumber]

\title{Title of My Presentation}
\subtitle{My Subtitle}
\author{My Name}
\institute{My Institute}
\date{01. Januar 1111}

\begin{document}

\frame{\titlepage}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.