When I make a new .tex document, three other files are created as well, .pdf, .aux and .synctex. I want the .pdf file, but are the other two necessary, can I delete them? Can I tell latex to not create .aux and .synctex files?
\nofiles in the preamble prevents the generation of the helper files. However, this will lead to the fact that
and all job-dependent files can't be written, so changes made after
\nofiles is applied won't be updated, leading most probably to wrong references and page numbers. Those files are generated by the (La)TeX compilation step, in conjunction with other tools such as
There is no way in TeX itself to delete files (as far as I know)