[OS X TeX] Numbering pages on PDF-documents

Alan Munn amunn at msu.edu
Sun Mar 2 20:12:18 CET 2008


At 7:57 PM +0100 3/2/08, Manuel wrote:
>Am 02/03/2008 um 15:12 schrieb Alan Munn:
>
>>Use the geometry package for this sort of thing.
>>
>>For your specific example:
>>
>>\usepackage[hmargin=2cm, vmargin=1cm, includeheadfoot]{geometry}
>
>Yes! This worked perfectly, many thanks, Alan.
>
>Is there any way to supress numbers on certain pages? Like, on 
>"pages 1 to 3"  and "page 145" no page number appear?

Yes. Recall that your pdfpages command has the following format:

\includepdf[pages=-,pagecommand={\thispagestyle{headings}}]{filename.pdf}

This tells pdfpages to insert all the pages into the document with 
the headings pagestyle.

So if you want particular pages to be blank, you would need to make 
separate includes for the ranges of pages that you want to have a 
blank pagestyle, and then leave out the pagecommand parameter.

e.g. the following will put no page numbers on pages 1-3 and page 
numbers on the rest.

\includepdf[pages={1-3}]{filename.pdf}
\includepdf[pages={4-last},pagecommand={\thispagestyle{headings}}]{filename.pdf}

Alan

-- 
Alan Munn 
amunn at msu.edu
Department of Linguistics                             
and Germanic, Slavic, Asian and African Languages   Fax.  +1-517-432-2736
Michigan State University, East Lansing MI 48824       Tel.  +1-517-355-7491



More information about the macostex-archives mailing list