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:
-
latexmk
is a command-line tool used to automate the compilation and management of LaTeX documents. -
-c
is an option for thelatexmk
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}
.