Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
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
    
thanks a lot. It works very well! –  vince Sep 27 '12 at 12:40

1 Answer 1

up vote 4 down vote accepted

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 }.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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