Page LayoutHeader and Footer on every included PDF Page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
deathmagneticx
Posts: 3
Joined: Wed Apr 24, 2013 4:01 am

Header and Footer on every included PDF Page

Post by deathmagneticx »

Hi all,

I'm a newbie in LaTeX and I need help. I'm combining many PDF files in a single document using pdfpages package. I need help on how to put header and page number in every PDF pages. I was able to put page numbers. My problem is with the header. The header is all the same in all the pages

Code: Select all

\documentclass{article}
\usepackage{pdfpages}
\usepackage{fancyhdr}

\topmargin 70pt
\oddsidemargin 70pt
\evensidemargin 70pt
\fancyhf{}
\fancyhead[L]{Your Tect Here}
\pagestyle{fancy}

%\renewcommannd{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
	
\begin{document}

\includepdfset{pages=-,pagecommand=\thispagestyle{plain}}

\includepdf[pages={-}]{template1}
\includepdf[pages={-}]{template2}
\includepdf[pages={-}]{template3}
\includepdf[pages={-}]{template4}

\end{document}
Attachments
Document1.jpg
Document1.jpg (143.18 KiB) Viewed 15138 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Header and Footer on every included PDF Page

Post by Stefan Kottwitz »

Hi,

welcome to the forum!

You could simply replace

Code: Select all

pagecommand=\thispagestyle{plain}
by

Code: Select all

pagecommand=\thispagestyle{fancy}
Stefan
LaTeX.org admin
deathmagneticx
Posts: 3
Joined: Wed Apr 24, 2013 4:01 am

Re: Header and Footer on every included PDF Page

Post by deathmagneticx »

Thank you very much!
Post Reply