Speed up latex

Some tips for speeding up latex compile times.

Only compile what you need.

Enable draft mode

Figures and Tikz

Compile preamble

After the preamble add \csname endofdump\endcsname Then compile the preamble once with:


# Compile
pdflatex -ini -jobname="main" "&pdflatex" mylatexformat.ltx main.tex

# Run the compiled version takes 1.996 seconds (on my machine ;).
pdflatex "&main" main.tex


# Run with defaults takes 4.591 seconds.
pdflatex main.tex

← Back to Wiki