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 working on a research paper with many figures in it. To save paper, I would like to exclude the figures when I print drafts of the paper. Is there an easy way to do this (via command-line option, graphicx option, or something else)?

share|improve this question
add comment

3 Answers

up vote 13 down vote accepted

I would simply use the endfloat package, which places all floats (figures and tables) at the very end of the document. Then you can print only the leading pages with the text using the page range selection of your PDF viewer.

Alternatively, you can make LaTeX ignore all figure environments using the comment package:


See How to exclude text portions by simply setting a variable or option? for more details. A drawback here is that the label references won't work properly.

share|improve this answer
add comment

Just add the draft option when you load your document class, e.g.:


You can also add the option to the graphicx package:


If you want to save space, you can do as follows:


Or if you want to use the ifdraft package, you can do thus:

share|improve this answer
This option makes graphicx not include the images but prints frames with the same size so it doesn’t save space/paper but ink … –  Tobi Apr 5 '12 at 18:21
Note that your redefinition let things like [scale=1]{file} stay in the text. Better use \renewcommand{\includegraphics}[2][]{} to gobble the arguments. The \relax is not necessary in this case, I guess. –  Tobi Apr 5 '12 at 18:27
add comment

While the draft option replaces all graphics by frames with the same size, you may like to redefine \includegraphics so that it prints only the file name in an \fbox to save space/paper:



    \fbox{#2}% print file name in a small box

    \caption{Caption text}


  • To suppress the file name box, too, replace the redefinition with \renewcommand{\includegraphics}[2][]{}.

  • The option demo lets graphicx print black boxes instead of searching the file to include it. It has nothing to do with your question but is useful for the demonstration ;-)

  • The package lipsum provides blind text and doesn’t belong to the solution.

share|improve this answer
Cool solution. But if you redefine \includegraphics you don't need to the demo option, I think. –  NVaughan Apr 5 '12 at 18:29
@NicolasVaughan: Sure but if one comments out the redefinition to see the difference it’s useful :-) –  Tobi Apr 5 '12 at 18:30
add comment

Your Answer


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.