Forrest logo
back to the latexmk tool

latexmk:tldr:fb3e8

latexmk: Clean up temporary TEX files created for a specific TEX file.
$ latexmk -c ${source-tex}
try on your machine

The command latexmk -c ${source-tex} is used to clean up the auxiliary files created during the compilation of a LaTeX document.

Here's a breakdown of the command:

  • latexmk is a command-line tool used to automate the compilation and management of LaTeX documents.

  • -c is an option for the latexmk command that instructs it to clean up the auxiliary files. These include files like log files, intermediate build files, and other temporary files generated during the compilation process.

  • ${source-tex} is a placeholder for the actual name of the LaTeX source file. The ${source-tex} syntax is commonly used in the Unix shell (e.g., Bash) to represent variables or placeholders. You would replace ${source-tex} with the actual name of your source file, typically with the .tex extension.

Combining everything together, this command tells latexmk to clean up the auxiliary files associated with the LaTeX document specified by ${source-tex}.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the latexmk tool