LinuxCommandLibrary

latexmk

latexmk

TLDR

Compile a DVI (Device Independent file) document from every source

$ latexmk
copy


Compile a DVI document from a specific source file
$ latexmk [source.tex]
copy


Compile a PDF document
$ latexmk -pdf [source.tex]
copy


Force the generation of a document even if there are errors
$ latexmk -f [source.tex]
copy


Clean up temporary TEX files created for a specific TEX file
$ latexmk -c [source.tex]
copy


Clean up all temporary TEX files in the current directory
$ latexmk -c
copy

Copied to clipboard