Skip to main content

Compile LaTeX source files into finished documents. Automatically does multiple runs when needed.

# To compile a dvi (DeVice Independent file) document from every source:
latexmk

# To compile a dvi document from a specific source file:
latexmk <source.tex>

# To compile a pdf document:
latexmk -pdf <source.tex>

# To force the generation of a document even if there are errors:
latexmk -f <source.tex>

# To clean up temporary tex files created for a specific tex file:
latexmk -c <source.tex>

# To clean up all temporary tex files in the current directory:
latexmk -c