How to put one cartoon in the background of one book

I would like to add one cartoon in the right margin of odd pages in one book. More precisely, …

  • … the page #1 must contain the picture #1,
  • … the page #3 must contain the picture #2,
  • … the page #5 must contain the picture #3,
  • … and so on.

How can I achieve this ?

Solutions Collecting From Web of "How to put one cartoon in the background of one book"

You can include the pictures using \includegraphics.

In order to ensure to get one cartoon per page, I would call it from the header rendering, using \srcpage2 for example.

Here is an example:

\documentclass[paper=a4]{scrbook}

\usepackage{scrpage2}
\usepackage{graphicx}
\newcommand{\cartoon}[1]{%
\begin{picture}(0,0)
        \put(#1,-200){\includegraphics[width=35mm]{xkcd/\thepage.jpg}}
\end{picture}
}
\cehead[\cartoon{-320}]{}
\cohead[\cartoon{220}]{}
\pagestyle{scrplain}
\usepackage{blindtext}

\begin{document}
\Blinddocument   
\end{document}

And the result, alternating margins:

Page 1

Page 2

Page 3

Edit: Upon re-reading your question, I just saw you only wanted odd margins. Just remove the \cehead and you’ll only have odd margins.