I am trying to print out page number/total number of pages in the handout that I get from this code: This is my MWE:

\documentclass[11 pt, handout,xcolor=pdftex,x11names,table]{beamer}
\pgfpagesuselayout{2 on 1}[letterpaper,border shrink=10mm]
\pgfpageslogicalpageoptions{1}{border code=\pgfusepath{stroke}}
\pgfpageslogicalpageoptions{2}{border code=\pgfusepath{stroke}}


\item check1
\item check 2

Text 1


I'd like to modify the code in a way that I can add (ideally) header and footer (OR at least page #/# of pages) in the right bottum corner. Is it possible?

  • Do you want to print page number on the page or frame number on each frame ?
    – Ger
    Nov 16 '12 at 8:10
  • Thanks to @Gonzalo Medina: he answered the question in this post: [Header and Footer in handout using pgfpages][1] [1]: tex.stackexchange.com/questions/83257/…
    – N Nik
    Nov 19 '12 at 2:08

Here is an example using the package pdfpages that I used in order to do handouts.

First, run your beamer document with handout option and call it prep_handout.pdf for example. Then run this tex file to create the handout with several frames per page. Here I used fancyhdr in order to manage the headers/footers.

Although you must create a new tex file, pdfpages package and the includepdf command give you plenty of options. Here the key option is the pagecommand option.


\usepackage[top=2cm, left=1cm, bottom=2cm, right=1cm]{geometry}

\fancyhead[L]{\itshape\sffamily left header}
\fancyhead[R]{right header}


            noautoscale=true,scale=0.9,delta=5mm 5mm]{prep_handout.pdf}

enter image description here

  • This is fantastic! Even though I was hoping I could do it using pgfpages, nevertheless, this solution worked very well. Thank you!
    – N Nik
    Nov 16 '12 at 14:53
  • 1
    just for the sake of completeness, do you think it is possible to do the same thing using pgfpages? Thanks
    – N Nik
    Nov 16 '12 at 15:19
  • I am so sorry for multiple comments. What happens is that, by using the suggested the suggested method, I loose my automatic bookmarks in the pdf file of the handouts...
    – N Nik
    Nov 16 '12 at 15:32
  • 1
    Yes, as you include the pdf you loose hyppertex information. I do not know pgfpages ... sorry. However, using pgfpages you will probably keep your hypperlinks.
    – Ger
    Nov 18 '12 at 20:03

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.