# How do you temporarily disable figures and tables from being compiled into output file? [duplicate]

I am currently writing my thesis and it has a 200 page limit without figures and tables.

Is there some way I can turn off tables and figures from being output, so I can check my page count, but without removing them from the code?

Please find here the style file I am using:

https://www.maths.ox.ac.uk/members/it/faqs/latex/thesis-class

• You could use the endfloat package to print all figure and table environments on separate pages at the end of your document. Related: How can I remove the figures from a draft of my document? – leandriis Jun 22 '18 at 10:32
• If you use the graphicx package you can set the draft flag. \usepackage[draft]{graphicx} – sporc Jun 22 '18 at 10:46
• Just load the comment package and add the instructions \excludecomment{figure}, \excludecomment{table}, \let\endfigure\relax, and \let\endtable\relax in the preamble. – Mico Jun 22 '18 at 10:50
• @Freeman - The mysterious \textbf{} directives immediately after each \end{figure/table} definitely look like excellent candidates for removal... – Mico Jun 22 '18 at 11:47
• @Freeman - If you're using the [H] placement specifier habitually, you're not using the LaTeX float mechanism properly; in fact, you're not using it at all. Do try to wean yourself off that habit, ì.e., use [H] only exceptionally. – Mico Jun 22 '18 at 11:53