4

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)

5

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

\documentclass{amsbook}
\usepackage{pdfpages}

\begin{document}
\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=-
\end{document}

enter image description here

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

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

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.