Graphics, Figures & Tables ⇒ Conditional Compilation of Figures
Conditional Compilation of Figures
-sgsawant
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- 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}