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
.tex
pdflatex
.pdf
.aux
Write a shell-script wrapper which removes the files:
#!/bin/sh pdflatex "$@" && rm -f *.aux *.log *.synctex.gz
Bonus-assignment: modifying the script to only remove the files actually created by pdflatex.