I don't want the .aux, .log and .synctex.gz files when using pdflatex

Orhan Toy picture Orhan Toy · Sep 19, 2010 · Viewed 49.4k times · Source

I just want to have a .tex file which I compile with pdflatex and end up with a .pdf file. I don't want all the other .aux, .log and .synctex.gz files. pdflatex doesn't seem to have arguments for this.

Answer

Joel Berger picture Joel Berger · Nov 26, 2010

latexmk -c will remove the unnecessary files. latexmk is a great way to manage the compile too!