[texhax] pdfpages and page numbers

David Carlisle d.p.carlisle at gmail.com
Thu Aug 31 16:05:58 CEST 2017


\newcomand\mypdf{\includepdf[pages=-,pagecommand={\thispagestyle{fancy}}]}

then


...

\mypdf{{FILENAME.pdf}

?

David


On 31 August 2017 at 14:57, Jerry <jerry at seibercom.net> wrote:
> After doing some research, I found that I can get page numbers included on
> pages created by the "\includepdf{file} command by using this format:
>
> \includepdf[pages=-,pagecommand={\thispagestyle{fancy}}]{FILENAME.pdf}
>
> I would like to include the "[pages=-,pagecommand={\thispagestyle{fancy}}]"
> part in the document preamble so I don't have to type it every time I use that
> command. I have tried different methods, but i either get an error message or
> it just doesn't work. By the way, I do have the "fancyhdr" and "pdfpages"
> packages loaded.
>
> There must be a way to do this; however, I am just not sure how.
>
> Thanks!
>
> --
> Jerry
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org


More information about the texhax mailing list