# [texhax] Caption to figure in margin -- gives "LaTeX Error: Not in outer par mode"

Axel E. Retif axretif at igo.com.mx
Thu Nov 23 05:26:35 CET 2006

On Nov 22, 2006, at 05:08 , Niall Mansfield wrote:

> I want to put the caption to a figure in the margin (to save space,
> as vertical space is limited for reasons we don't have to go into).
>
> I have tried:
>
> \begin{figure}
> 	\centerline{\includegraphics{dummy.eps}}
> 	\marginpar{This is a dummy picture}
> 	\end{figure}
>
> but that gives the error:
> 	LaTeX Error: Not in outer par mode
>
> Is there a way round this?
> (Figure numbering, tables of figures, etc. are not important,
> so the solution doesn't have to be 100% "clean".)

Take a look at sidecap.sty ---it's the easier way to achieve what you
want, and it's really clean''. wrapfig.sty and caption.sty are
other handy packages, for different purposes.

Best,

Axel