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

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

| improve this answer | |
  • Thanks. I like the second solution (\marginpar): she works almost fine with book class. Any solution with the todonotes package? – Raffaele Santoro Jan 21 '13 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}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.