I'm writing a text where I have some figures that need to be wider than the text width, and I want then to spill out into the outer (in my text, rather wide) margin. I have tried a solution which I found in a previous question here, but I can't make it work.
I copied the code in Place figures side by side, spill into outer margin
and modified it to:
\usepackage{ifoddpage}
\begin{figure}
\checkoddpage
\edef\side{\ifoddpage l\else r\fi}%
\makebox[\textwidth][\side]{\includegraphics[width=1.4\textwidth]{wide_image}}
\caption{xxx}
\label{fig:1}
\end{figure}
This makes figures behave the correct way on odd pages (they are left-aligned with text), but not on even pages (where they are still left-aligned with the text, making them spill into the inner margin instead)?
I'm using the "report" class.


\documentclass{...}and ending with\end{document}. – Benedikt Bauer Jan 07 '13 at 08:24\usepackage{lipsum}and the command\lipsum[1-5]. If you change[1-5]to something else (up to 40), you get a text of different length. This would allow you to move the figures on odd or even page as needed. – yo' Jan 07 '13 at 09:04