1

I would like to insert a logo on each odd pages of my document (but the first) I know how to do it for each page but cannot figure out how to only do it on odd pages. So I have

\makeatletter
\AddToShipoutPicture*{%
            \setlength{\@tempdimb}{0.24\paperwidth}%
            \setlength{\@tempdimc}{1.795\paperheight}%
            \setlength{\unitlength}{0.5pt}%
            \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){%
        \includegraphics[width=0.25 \textwidth]{logo.eps}
            }%
}
\makeatother

I guess my issue is I do not really know how to put "if" conditions in that code! Could anyone help me on that?

1
  • The correct if statement here is \ifodd\c@page ... \fi. Put the \if part after 2nd line of your code and the \fi part before the closing }. Does it help? (I would try to test it but you have not provided Minimal Working Example so I don't even know which package you use.) – yo' Sep 27 '12 at 12:35
4

The correct if statement here is \ifodd\c@page ... \fi. Put the \if part after 2nd line of your code and the \fi part before the closing }.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.