Graphics, Figures & Tables ⇒ Conditional Compilation of Figures
Conditional Compilation of Figures
-sgsawant
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Conditional Compilation of Figures
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Conditional Compilation of Figures
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Conditional Compilation of Figures
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Conditional Compilation of Figures

I am editing this reply because I have one more question - how to compile just a single figure, while the graphicx package has been set to the "draft" option? Is there a way?
-sgsawant
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Conditional Compilation of Figures
Code: Select all
\includegraphics[draft,scale=0.5]{filename}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Conditional Compilation of Figures

... though I wish there was an option for a local inclusion of the keyword final.

Code: Select all
\includegraphics[final,width=8cm]{fig1.png}