3

This question already has an answer here:

I want to show Frame Number/Total Frame Number without navigation bar, just like the following picture:

default theme works

The below MWE works as expect:

\documentclass{beamer}
%\usetheme{Copenhagen}

\beamertemplatenavigationsymbolsempty
\setbeamertemplate{footline}[frame number]{}

\begin{document}

\frame
{
\frametitle{Frame A}
Frame A
}

\frame
{
\frametitle{Frame B}
Frame B
}

\frame
{
\frametitle{Frame C}
Frame C
}

\end{document}

However, if I uncomment the second line %\usetheme{Copenhagen}, the Frame Number/Total Frame Number disappears as follows:

Copenhagen not work

My compiler is TexLive 2018 with xelatex.

Is there any way to show Frame Number/Total Frame Number with Copenhagen theme?

marked as duplicate by user36296 beamer May 20 '18 at 14:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3

To get the desired slide numbering add the following lines:

\setbeamertemplate{footline}[text line]{%
    \parbox{\linewidth}{\vspace*{-8pt}\hfill\hfill\insertframenumber\,/\,\inserttotalframenumber}}

to the preamble as shown in the example:

\documentclass{beamer}
\usetheme{Copenhagen}

\beamertemplatenavigationsymbolsempty
%\setbeamertemplate{footline}[frame number]{}

\setbeamertemplate{footline}[text line]{%
    \parbox{\linewidth}{\vspace*{-8pt}\hfill\hfill\insertframenumber\,/\,\inserttotalframenumber}}

\begin{document}

\frame
{
\frametitle{Frame A}
Frame A
}

\frame
{
\frametitle{Frame B}
Frame B
}

\frame
{
\frametitle{Frame C}
Frame C
}

\end{document}

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