I want to execute the command
\ClearShipoutPicture
on the second page of a latex letter class document. What I need is something like this:if page reference = 2, then
\ClearShipoutPicture
I am a complete LaTeX noob and don't know the first thing about conditional statements or I might be able to self research this issue.
I need a letterhead to appear on the first page of a letter and not on successive pages. I know there are a lot of different ways to do this. The way I'm doing it is to have a PDF document with just the letterhead on it and using that as a background with the eso-pic package.
The code to create a PDF background is (according to {TeX} SX):
Code: Select all
\newcommand\BackgroundPicFront{
\put(0,0){
\parbox[b][\paperheight]{\paperwidth}{
\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{/usr/share/data/in_squalus/files/office/LATEX_TEMPLATES/letter-hdr.pdf}%
\vfill
}
}
}
Code: Select all
\AddToShipoutPicture{\BackgroundPicFront}
To remove the PDF background, you use the command:
Code: Select all
\ClearShipoutPicture
I currently have to generate a PDF document, view where the page breaks occur, and then insert the
\ClearShipoutPicture
command at some place in the document after the first page break in order to turn off the PDF background after the first page. This is not an elegant solution. If I could automatically have the command run during the build using conditional command execution, then I wouldn't have to fuzz with the letterhead placement on each letter.thanks