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).

2 Answers 2


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):

\usepackage{lipsum} % for dummy text

\caption{A tufte margin figure}

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


\captionof{figure}{\label{Two}A marginpar figure. 
Note that text width is in another scale here.}

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

Apparently, all you need to do is protect the \includegraphics macro. The following MWE works for me.

    \tiny #3
\todoFig{image.png}{1cm}{Small caption}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .