[Tex/LaTex] Display only a single figure when in draft mode

draftfloatsgraphics

How can I enable a single figure when in draft mode?

I am working on a large document (thesis) containing many figures. Some of these figures are large, resulting in long compile times. I can fix this by switching the document to draft mode.

However, when I am adding a figure, and associated discussion, I will generally want to see the figure in full, in place. Also, since I'm adding something new I'll often be re-compiling minor changes to see how it looks.

What I would like to do is to have the document set to draft mode (figures not being loaded) but have the "active" figure displayed until I'm finished with it. I don't know of any way to do this. is it possible?

Best Answer

Just set draft=false for the picture you want to be shown anyway:

\documentclass[draft]{article}

\usepackage{graphicx}

\begin{document}

\includegraphics[width=50pt]{example-image-a}

\includegraphics[draft=false,width=50pt]{example-image-b}

\includegraphics[width=50pt]{example-image-c}

\end{document}

enter image description here