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.

I'm using Emacs 23 with AUCTeX/preview-LaTeX for all my LaTeX editing. Mostly I am very happy with this, but I do not like the included graphics previewed in full size. For now my solution is to disable preview for floats and graphics, but what would be really nice would be to get a thumbnail preview of any included graphics.

My problem is that I cannot make sense of the description of \PreviewMacro included in the preview-latex documentation, and in particular it is not clear to me if I can use a clever \PreviewMacro to generate a preview thumbnail for \includegraphics... by evaluating something like \parbox{2cm}{\includegraphics...} (all my graphics is scaled relative to \linewidth) or maybe \includegraphics[width=2cm,...].
My only desperate attempt was

\PreviewMacro[{*?[{#{[#1]}{[width=2cm,{#1}]}}{[width=2cm]}{}}]{\includegraphics}

but this went nowhere.
Could this ever work -- and if so, how?

share|improve this question
add comment

closed as not a real question by Marco Daniel, egreg, Stefan Kottwitz Feb 4 '12 at 21:13

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.