Graphics, Figures & Tables ⇒ Generate PDF without floats
-
- Posts: 3
- Joined: Thu Sep 03, 2009 3:13 pm
Generate PDF without floats
Hello,
I want to generate a PDF without figures and tables. Is there an easy way to "turn them off" ... This is for preview purpose only, so minimal changes in the tex-file are preferred.
Thanks,
US
I want to generate a PDF without figures and tables. Is there an easy way to "turn them off" ... This is for preview purpose only, so minimal changes in the tex-file are preferred.
Thanks,
US
NEW: TikZ book now 40% off at Amazon.com for a short time.

Generate PDF without floats
If you add "draft" to the options of \documentclass, only the bounding box of the figure will be printed
Don't know how to do it with tables.
Code: Select all
eg change
\documentclass[a4paper]{report}
to
\documentclass[a4paper,draft]{report}
-
- Posts: 3
- Joined: Thu Sep 03, 2009 3:13 pm
Re: Generate PDF without floats
Thanks, but I even don't want to see bounding boxes or captions ...
Generate PDF without floats
Are you running on linux? This is not latex, but from the command line you could filter out all of the figure and table environments then compile the rest
you should now be able to run latex on new_file.tex to get a document with no figures or tables.
Code: Select all
sed '/begin{figure}/,/end{figure}/ d' file.tex | sed '/begin{table}/,/end{table}/ d' > new_file.tex
-
- Posts: 3
- Joined: Thu Sep 03, 2009 3:13 pm
Re: Generate PDF without floats
Thank you, I'll try this workaround.
But I would prefer a package to control it from within the tex-file.
But I would prefer a package to control it from within the tex-file.
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: Generate PDF without floats
You could look at the comment package, which makes environments into comments. That should enable you to temporarily "hide" whatever you want.
Joseph Wright