latexmk
all
Compile LaTeX source files into finished documents. Automatically does multiple runs when needed.
More info →Examples (8)
Compile a DVI (Device Independent file) document from every source
Compile a DVI document from a specific source file
latexmk path/to/source.texCompile a PDF document
latexmk -pdf path/to/source.texOpen the document in a viewer and continuously update it whenever source files change
latexmk -pvc path/to/source.texForce the generation of a document even if there are errors
latexmk -f path/to/source.texClean up temporary files created for a specific TEX file
latexmk -c path/to/source.texClean up all temporary files in the current directory
latexmk -cClean up all files generated by LaTeX, leaving source files and non-generated assets
latexmk -Cmade by @shridhargupta | data from tldr-pages