Graphics, Figures & TablesAuto background picture on every odd (or even) page

Information and discussion about graphics, figures & tables in LaTeX documents.
pcp1976
Posts: 1
Joined: Wed May 12, 2010 7:38 pm

Auto background picture on every odd (or even) page

Post by pcp1976 »

How about using eso-pic in conjunction with ifthen?

Code: Select all

\AddToShipoutPicture{\ifthenelse{\isodd{\thepage}}%
{\includegraphics{recto}}{\includegraphics{verso}}}
Where verso is your even page background image and recto is your odd page image.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Auto background picture on every odd (or even) page

Post by meho_r »

pcp1976 wrote:How about using eso-pic in conjunction with ifthen?

Code: Select all

\AddToShipoutPicture{\ifthenelse{\isodd{\thepage}}%
{\includegraphics{recto}}{\includegraphics{verso}}}
Where verso is your even page background image and recto is your odd page image.
Works for me. Thank you :)
Post Reply