Tuesday, 6 August 2013

How to make an 'if' on romain numbered pages and another 'if' on arabic numbered pages

How to make an 'if' on romain numbered pages and another 'if' on arabic
numbered pages

I want to make some conditions on romain pages and another condition on
arabic numbered page. (I want to know how to remove the background from
specific pages in both numbering categories).
\AddEverypageHook{%
\ifnum\value{page}>0
\ifodd\value{page}\relax%
\backgroundsetup{% settings for odd-numbered pages
angle=0,
contents={\begin{tikzpicture}[remember picture,overlay]
\node at ([yshift=0cm,xshift=-9.7cm]current page)
{\includegraphics[scale=1.10] {Margin2.png}}; %% yshift and
xshift for example only
\end{tikzpicture}}
}%
\else
\backgroundsetup{% settings for even-numbered pages
angle=0,
contents={\begin{tikzpicture}[remember picture,overlay]
\node at ([yshift=0cm,xshift=9.7cm]current page)
{\includegraphics[scale=1.10]{Margin2.png}}; %% yshift and xshift
for example only
\end{tikzpicture}}
}%
\fi%
\BgMaterial
\fi}

No comments:

Post a Comment