How To Install Latexmk?

How To Install Latexmk?

latexmk

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

Maintainer: OHURA Makoto



Section: tex

Install latexmk

  • Debian apt-get install latexmk Click to copy
  • Ubuntu apt-get install latexmk Click to copy
  • Arch Linux pacman -S latexmk Click to copy
  • Kali Linux apt-get install latexmk Click to copy
  • Fedora dnf install latexmk Click to copy
  • Raspbian apt-get install latexmk Click to copy

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

How to use latexmk?

Below are few example commands for latexmk that you can use in the terminal.

Compile a dvi (DeVice Independent file) document from every source:
latexmkClick to copy
Compile a dvi document from a specific source file:
latexmk source.texClick to copy
Compile a pdf document:
latexmk -pdf source.texClick to copy
Force the generation of a document even if there are errors:
latexmk -f source.texClick to copy
Clean up temporary tex files created for a specific tex file:
latexmk -c source.texClick to copy
Clean up all temporary tex files in the current directory:
latexmk -cClick to copy
Install the latest version of latexmk in Debian, Ubuntu, Arch, Kali, Fedora and Raspbian from terminal. To install the latexmk just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of latexmk from the respository and install it in your computer/server.