1 \newcommand{\makecover}[2]{
6 \newlength{\PictHOffset}
7 \newlength{\PictVOffset}
8 \setlength{\PictHOffset}{1in}
9 \addtolength{\PictHOffset}{\hoffset}
10 \addtolength{\PictHOffset}{\oddsidemargin}
12 \setlength{\PictVOffset}{1in}
13 \addtolength{\PictVOffset}{\voffset}
14 \addtolength{\PictVOffset}{\topmargin}
15 \addtolength{\PictVOffset}{\headheight}
16 \addtolength{\PictVOffset}{\headsep}
17 \addtolength{\PictVOffset}{\topskip}
18 \addtolength{\PictVOffset}{-\pdfpageheight}
20 \noindent\hspace*{-\PictHOffset}%
21 \raisebox{\PictVOffset}[0pt][0pt]{\makebox[0pt][l]{%
22 \includegraphics[height=\pdfpageheight,width=\pdfpagewidth]{cover.png}}}
25 \setlength{\pdfpagewidth}{210mm}
26 \setlength{\pdfpageheight}{297mm}