[Tex/LaTex] Make figure stick out past the margin

marginswrapfigure

I want to use wrapfig to insert a figure which sticks out into the margin. This does not work, it causes the figure to appear at the end of the text:

{\addtolength\textwidth{1in}
\begin{wrapfigure}{r}{0.5\textwidth}
  \begin{center}
    \includegraphics[width=0.48\textwidth]{funcimmet1.pdf}
  \end{center}
  \caption{Graph of $2{{\sin }^{2}}x-1$}
\end{wrapfigure}
}

This makes the picture bigger but it doesn't stick out, it eats up more space to the left:

\addtolength\textwidth{1in}
\begin{wrapfigure}{r}{0.5\textwidth}
  \begin{center}
    \includegraphics[width=0.48\textwidth]{funcimmet1.pdf}
  \end{center}
  \caption{Graph of $2{{\sin }^{2}}x-1$}
\end{wrapfigure}
\addtolength\textwidth{-1in}

How can I do this?

Best Answer

The wrapfigure has an optional parameter for this. Use the full definition

[number of narrow lines] {placement} [overhang] {width of figure}

Placement is one of   r, l, i, o, R, L, I, O,  for right, left,

The figure sticks into the margin by `overhang', if given.