Hello I am trying to create a document with multiple pages. However, I need to add a specific background to the first page and another background for the rest of the pages.
I am currently using:
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage[pages=1,2]{background}
\backgroundsetup
{scale=1.0, color=black, opacity=1.0, angle=0,
contents={
\checkoddpage
\ifoddpage
\includegraphics[width=\paperwidth,height=\paperheight]{1.pdf}
\else
\includegraphics[width=\paperwidth,height=\paperheight]{2.pdf}
\fi}
}
I would like to use something like this instead of ifoddpages.
\if page = 1
\includegraphics{...}
else
\includegraphics{...}
\ifnum\value{page}>1 \includegraphics{...}\else\includegraphics{...}\fi
. There is a space between1
and\includegraphics{...}
.