# Beamer: count included PDF for frame numbering

For adding an existing PDF to a beamer document, it was explained to use \includepdf with the following code:

\documentclass{beamer}
\usepackage{pdfpages}
\usetheme{Montpellier}
\usebeamerfont{footline}%
\usebeamercolor[fg]{footline}%
\hspace{0.5cm}%
}
\begin{document}
{
\setbeamercolor{background canvas}{bg=}
\includepdf{filea.pdf}
}
\end{document}


This way, however, no frame is created and thus, the page (or frame) isn't counted for the numbering in the bottom right (I have two pages 0/20). Since this defies the purpose of numbering at a presentation, I'd like to change this.

• Try \addtocounter{frame}{20} (whatever number of external pages you include) Jan 30, 2019 at 17:28
• Your MWE does not use any theme that would show framenumbers.... Jan 30, 2019 at 17:30
• @samcarter Fixed it, \addtocounter doesn't work anyhow.
– Juan
Jan 30, 2019 at 17:47
• Sorry, my bad. The counter is called framenumber and not frame Jan 30, 2019 at 21:54

You can manually increase the framenumber counter to take the included pdf into account:

\documentclass{beamer}
\usepackage{pdfpages}
\usetheme{Montpellier}
\usebeamerfont{footline}%
\usebeamercolor[fg]{footline}%
\hspace{0.5cm}%
}
\begin{document}

\begin{frame}
content...
\end{frame}

{