snippetbashTip
latexmk — Compile LaTeX source files into finished documents. Automatically does multiple runs when needed. Mo
Viewed 0 times
commandlatexmkfilessourcecompileclilatexinto
Problem
How to use the
latexmk command: Compile LaTeX source files into finished documents. Automatically does multiple runs when needed. More information: <https://mg.readthedocs.io/latexmk.html>.Solution
latexmk — Compile LaTeX source files into finished documents. Automatically does multiple runs when needed. More information: <https://mg.readthedocs.io/latexmk.html>.Compile a DVI (Device Independent file) document from every source:
latexmkCompile a DVI document from a specific source file:
latexmk {{path/to/source.tex}}Compile a PDF document:
latexmk -pdf {{path/to/source.tex}}Open the document in a viewer and continuously update it whenever source files change:
latexmk -pvc {{path/to/source.tex}}Force the generation of a document even if there are errors:
latexmk -f {{path/to/source.tex}}Clean up temporary files created for a specific TEX file:
latexmk -c {{path/to/source.tex}}Clean up all temporary files in the current directory:
latexmk -cClean up all files generated by LaTeX, leaving source files and non-generated assets:
latexmk -CCode Snippets
Compile a DVI (Device Independent file) document from every source
latexmkCompile a DVI document from a specific source file
latexmk {{path/to/source.tex}}Compile a PDF document
latexmk -pdf {{path/to/source.tex}}Open the document in a viewer and continuously update it whenever source files change
latexmk -pvc {{path/to/source.tex}}Force the generation of a document even if there are errors
latexmk -f {{path/to/source.tex}}Context
tldr-pages: common/latexmk
Revisions (0)
No revisions yet.