I wonder how to insert the page numbers (say) on the top left-corner of the frames of my presentation file (excluding the first frame -namely the Title Frame- and the last one, namely the Thank-You Frame) - in a (PDF)LaTeX.

I have used the \documentclass{beamer} in the TeX file as follows.




\title[Title of the presentation]{Title of the presentation}
\author[Dept. of Mathematical Sciences, NTNU \hspace{1mm} Name]{Name}
{Norwegian University of Science and Technology}}
\date{Month, Year}


\newcommand{\dif}{\, \mathrm{d}}
\def\norml       {\mid\!\mid\!}
\def\normr       {\!\mid\!\mid}
\def\normel       {\mid\!\mid\!\mid\!}
\def\normer       {\!\mid\!\mid\!\mid}


\begin{frame}\frametitle{Frame Title}



  • 1
    The title and body of your question are somewhat confusing. Do you mean that you want to add frame or page numbers on the PDF file (sort of postprocessing, like when we generate handouts), or using Latex+Beamer directly? – chl Jan 24 '11 at 22:19
  1. In order to display the frame number at the top left corner, you should add this to the preamble:


Changing the measurements will result in different positions.

  1. If you want to hide the number in any frame, you should place the line


    after the command to begin the frame.

  2. The only downside of this is that you'd have the numbering starting at the titlepage, so in case you hide it, your numbering would start from "2". To fix this, and restart numbering from the first actual frame, insert this line after the command to begin the frame (i. e., the frame you chose to be page one):


    OR: There's also a (much) simpler way to do something similar. There's command


    which will add author, title and page count at bottom of each frame. You can also try to modify the footline to display only the information you want.

| improve this answer | |

You can get a "page of total" output in the form x/y beside the title if you do this:

\frametitle{\begin{small}\insertframenumber/\inserttotalframenumber\end{small} My slide title}

Would that be along the lines you're looking for?

| improve this answer | |

Your Answer

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