92

Is there an equivalent command to \nonumber when one doesn't want to include certain slides in the numbering? I would like to leave outline and title slides out of my numbering, and instead just number slides with actual content. Other workarounds would be nice to know about as well.

Edit: Since a MWE example was requested, here is one. Suppose I have a title page and two other slides. The code below gives a slide counter that goes up to 3, and the title slide is slide 1. I would prefer to have the title slide not be numbered, the counter go up to 2, and the the numbering start at the slide after the title. Here is some code.

\documentclass{beamer}

\mode<presentation>
 {
   \usetheme{Dresden}
 }

 \setbeamertemplate
 {footline}{\quad\hfill\insertframenumber/\inserttotalframenumber\strut\quad} 


\begin{document}

\begin{frame}
 \titlepage
\end{frame}

\begin{frame}
Some actual content here
\end{frame}

\begin{frame}
Some more actual content here
\end{frame}

\end{document}
1
  • 2
    Would you be able to provide an MWE so others can have something concrete to work with?
    – Werner
    Oct 4, 2011 at 16:46

4 Answers 4

141

Since beamer version 3.08, there is an undocumented option noframenumbering that doesn't increase the slide counter for the frame it is used on. This has the advantage that you don't have to manipulate the framenumber counter by hand. It is used like this:

\begin{frame}[noframenumbering]
 \titlepage
\end{frame}
6
  • 13
    Note: If you have a frame title, you need to place [..] before the frame title. For example, I'm doing this to not count my outline pages: \begin{frame}<beamer>[noframenumbering]{Outline}
    – srs
    Nov 4, 2014 at 11:32
  • 4
    I followed the exact instruction, but it does not work for me. My second slide still shows the slide count as 2/50, not 1/50. Any clues?
    – James H
    Sep 27, 2018 at 20:39
  • 2
    Does your first and second slide belong to same the same frame? I have the same issue, when I used noframenumbering along with allowframebreaks the second slide is counted in the page numbering
    – kksagar
    Jan 24, 2019 at 15:19
  • 4
    For me this adds a 0 where there used to be a 1. This is even worse.
    – MERose
    Sep 26, 2019 at 9:59
  • 6
    @MERose this can be avoided by removing the footer entirely from the title page by adding plain, before noframenumbering i.e. \begin{frame}[plain,noframenumbering] etc Nov 11, 2019 at 13:43
25

I usually just modify the framenumber counter using \setcounter to reset the frame number and \addtocounter with e.g. -1 to compensate for a slide which should not count. Usually you also want to hide the frame counter for these slides.

For example I used the following to don't number the title frame:

\begingroup
\renewcommand{\insertframenumber}{}
 \begin{frame}
  \addtocounter{framenumber}{-1}
  \titlepage
 \end{frame}
\endgroup

One issue with the frame number hiding is that theme use something like \insertframenumber{} / \inserttotalframenumber and so you can't get rid of the / that easy. I copied my theme for the lower bar and replaced that part with an own macro \insertframenumberratio which I set to empty to suppress the display. Alternatively you can still display it which then shows the number of the next slide. Usually people won't notice or mind that.

2
  • I usually just put a * in place of the current framenumber for things like outline etc. Oct 5, 2011 at 7:41
  • @CarstenThiel: Yes, I also thought about doing that. It is probably the easiest thing to do. Oct 5, 2011 at 8:09
7
\documentclass{beamer}
\setbeamertemplate{footline}[page number]{}

\begin{document}

{\setbeamertemplate{footline}{} 
\begin{frame}
\titlepage
\end{frame}
} %this removes the footline from title page

\addtocounter{page}{-1}  %the next frame will start from number 1 instead of 2
...

\appendix %all the frame after this line will not be included in the TOTAL PAGE count
%your appendix frames go here   
\begin{frame}{References}
...
\end{frame}
\end{document}
2
  • 1
    Isn't this the same with other answers?
    – percusse
    Mar 4, 2014 at 17:41
  • @percusse: it shows how to remove the footline from the first slide!
    – user1933
    Jan 1, 2016 at 14:18
5

For this specific example, I would just relocate the definition of the beamer template - \setbeamertemplate - to after the first slide. Additionally, for the framecounter to be accurate (using Martin's answer), add \addtocounter{framecounter}{-1} at the same location:

\documentclass{beamer}

\mode<presentation>
 {
   \usetheme{Dresden}
 }

\begin{document}

\begin{frame}
 \titlepage
\end{frame}

 \addtocounter{framenumber}{-1}
 \setbeamertemplate
 {footline}{\quad\hfill\insertframenumber/\inserttotalframenumber\strut\quad} 

\begin{frame}
Some actual content here
\end{frame}

\begin{frame}
Some more actual content here
\end{frame}

\end{document}​

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .