I would like to put figures in the outer margins of a book. I am using wrapfig to do so, but the figures are aligned differently on even and odd numbered pages. On odd pages, they align based on the edge of the page; on even pages, they align next to the text itself.
Ideally, I would like the figures to be centered in the middle of the margin regardless of even/odd page numbers. How can I accomplish this?
Here is a minimal example.
\documentclass[10pt]{book}
\usepackage[paperheight=11in,paperwidth=8.5in, inner=1in,includeheadfoot,textheight=9in,textwidth=345pt,marginparwidth=150pt]{geometry}
\usepackage{lipsum}
\usepackage{wrapfig}
\usepackage{tikz}
\setlength{\wrapoverhang}{\marginparwidth}
\addtolength{\wrapoverhang}{\marginparsep}
\begin{document}
\begin{wrapfigure}{o}{0pt}
\begin{tikzpicture}
\draw (0,0)--(3,0)--(3,3)--(0,3)--cycle;
\end{tikzpicture}
\caption{}\end{wrapfigure}
\lipsum[1]
\begin{wrapfigure}{o}{0pt}
\begin{tikzpicture}
\draw (0,0)--(5,0)--(5,5)--(0,5)--cycle;
\end{tikzpicture}
\caption{}\end{wrapfigure}
\lipsum[1]
\clearpage
\begin{wrapfigure}{o}{0pt}
\begin{tikzpicture}
\draw (0,0)--(3,0)--(3,3)--(0,3)--cycle;
\end{tikzpicture}
\caption{}\end{wrapfigure}
\lipsum[1]
\begin{wrapfigure}{o}{0pt}
\begin{tikzpicture}
\draw (0,0)--(5,0)--(5,5)--(0,5)--cycle;
\end{tikzpicture}
\caption{}\end{wrapfigure}
\lipsum[1]
\end{document}

150ptas the width for the minipage, you could use\marginparwidthwhich would change if the page dimensions change – cmhughes Nov 10 '11 at 15:44