Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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).
share|improve this question
    
Welcome to TeX.sx! –  Rico Jan 20 '13 at 18:51
add comment

1 Answer 1

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}
share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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