latexmk:tldr:fb3e8
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:
-
latexmkis a command-line tool used to automate the compilation and management of LaTeX documents. -
-cis an option for thelatexmkcommand 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.texextension.
Combining everything together, this command tells latexmk to clean up the auxiliary files associated with the LaTeX document specified by ${source-tex}.