todonotes
todonotes copied to clipboard
Include optinal sample image in missingfigure
I just came across the need to put some missingfigures in subfigs and thought it might me nifty to have some quickly grabbed images (from some web source) within the missingfigure. So one has the usual missingfigure sign, some text and eventually a little reminder image. So scrolling through your document you see not the same sign all the time, and getting a little bored by that (in terms of attention you pay), but you get remembered of getting high glossy images from some other ressource.
To me that'll be really helpfull. One should just be able to to includegraphics() within missingfigure.
I like that idea. A question about how to use such a feature, would the following be a proper approach according to you?
\missingfigure[image=filname]{Image of something.}
Sure, one has to hand over the path within the options. My only concern goes into the direction of filenames with spaces or PNG files, where one has to 'cluster' the name with curly brackets in usual includegraphics command.
The appearence could be centered, taking as much space as possible while keeping aspect ratio of the image. Underneeth could be a text block, saying, e.g. what this picture is supposed to show. The normal caption of the figure environment stays untouched by this option. Do you agree?
Am 2015-02-04 15:09, schrieb Henrik Skov Midtiby:
I like that idea. A question about how to use such a feature, would the following be a proper approach according to you?
missingfigure[image=filname]{Image of something.}
Reply to this email directly or view it on GitHub [1].
Links:
[1] https://github.com/henrikmidtiby/todonotes/issues/10#issuecomment-72859630
One approach to do this is the following. The \missingfigure is quite flexible and can be persuaded to the requested. This however breaks the \listoftodos ...
\documentclass{article}
\usepackage{todonotes}
\newcommand{\missingimage}[2]{\missingfigure{\begin{center}\includegraphics[width=5cm]{#1} \\ #2\end{center}}}
\begin{document}
\missingimage{wide_image.png}{More text about this image}
\end{document}