[Tex/LaTex] Exclude everything from pdf document except images


is there any way to ONLY print out a pdf with all the image with the correct sizes as they appear in the single chapters/sections etc…? The reason is I want to only print out some pages (not the full article / thesis) containing only the images so that I can easily and cheap check wether the image quality is okay or not. Therefor, I don't need any tables, listings, TOC, the text etc…

Embed code #1:


Embed code #2:


Best Answer

You may try putting the following code, extracted from the package syntonly, just before \begin{document}

\font\dummyft@=dummy \relax
\ifnum\count@ >\z@

This should ignore all text, but include images, printing as many as possible on each page.

I've added some of the more frequent commands that need to be "neutralized".

Alternative approach

Add the following to the preamble:


Compiling your document (say thesis.tex ) will write a file thesis-figures.tex containing the relevant \includegraphics commands and it's just a matter of adding a suitable preamble in order to compile this file.

Related Question