Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include optinal sample image in missingfigure #10

Open
goeck opened this issue Nov 25, 2014 · 3 comments
Open

Include optinal sample image in missingfigure #10

goeck opened this issue Nov 25, 2014 · 3 comments

Comments

@goeck
Copy link

goeck commented Nov 25, 2014

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.

@henrikmidtiby
Copy link
Owner

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

@goeck
Copy link
Author

goeck commented Feb 4, 2015

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]
#10 (comment)

@henrikmidtiby
Copy link
Owner

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants