# manage todonotes to insert figure in the margin

How I can use todonotes package to insert figure in the margin? I want 3 parameters:

1. The name of the figure,
2. the width of the figure,
3. the caption (perhaps with \tiny or \footnote fonts).
-
Welcome to TeX.sx! –  Rico Jan 20 at 18:51

As far I now, there are not an easy method to include a figure in a to do note, but there are at least two easy alternatives: the tufte-handout class and/or a \marginpar with the aid of the caption package. A minimal working example (if you have also an image with the filename gravatar.png):

\documentclass[justified]{tufte-handout}
\usepackage{lipsum} % for dummy text
\usepackage{graphicx}
\usepackage{caption}

\begin{document}
\begin{marginfigure}
\centering
\includegraphics[width=\textwidth]{gravatar.png}
\caption{A tufte margin figure}
\label{One}
\end{marginfigure}

See figure \ref{One} at margin. \lipsum[1]

\lipsum[2]

\marginpar{
\centering
\includegraphics[width=.45\textwidth]{gravatar.png}
\captionof{figure}{\label{Two}A marginpar figure.
Note that text width is in another scale here.}
}

\lipsum[3]
\end{document}

-
Thanks. I like the second solution (\marginpar): she works almost fine with book class. Any solution with the todonotes package? –  Raffaele Santoro Jan 21 at 4:27