TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My document consists of three parts, where part two is an external PDF which I bound in using the \includepdf command from the pdfpages package. I managed to place page numbers on these pages by use of the option pagecommand={}; e.g. \includepdf[pages=2,noautoscale,pagecommand={}]{Part_2.pdf}.

There is, however, one subtle thing I'd like to have adjusted: As it is now, all page numbers are displayed in the respective top outer corner. However I would like to have the page number of the first page of the PDF to be displayed in the middle at the bottom.

How can I do that? (The document class used is amsbook)

share|improve this question
up vote 8 down vote accepted

Insert the first page with the pagecommand -- pagecommand={\thispagestyle{plain}} and rest of the pages with pagecommand={}.


\includepdf[pages=-,noautoscale,pagecommand={\thispagestyle{plain}}]{duck1.pdf} %% first page - put pages=1
\includepdf[pages=-,noautoscale,pagecommand={}]{duck2.pdf} %% second page put pages=2-2 instead of pages=-

enter image description here

Picture courtesy by @Paulo Cereda (Thanks Paulo -- more ducks!)

share|improve this answer
Thanks for the answer! (and for the fancy illustrative example) ;) – Britzel Sep 15 '12 at 13:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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