I do not want to keep the miscellenous files created during compilation of my .tex files if the compilation is successful.
I tried setting Latex-clean-output-suffixes
by adding these extensions but that did not help.
How do I achieve that?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityActually, you don't need to customize anything. The variable in question is called LaTeX-clean-intermediate-suffixes
and has the following default value:
LaTeX-clean-intermediate-suffixes is a variable defined in ‘latex.el’.
Its value is
("\\.aux" "\\.bbl" "\\.blg" "\\.brf" "\\.fot" "\\.glo"
"\\.gls" "\\.idx" "\\.ilg" "\\.ind" "\\.lof" "\\.log"
"\\.lot" "\\.nav" "\\.out" "\\.snm" "\\.toc" "\\.url"
"\\.synctex\\.gz" "\\.bcf" "\\.run\\.xml" "\\.fls"
"-blx\\.bib" "\\.acn" "\\.acr" "\\.alg" "\\.glg" "\\.ist")
You can achieve want you want by hitting C-c C-c Clean RET or choose it in menu bar from Command->Clean
.
LaTeX-clean-intermediate-suffixes
. With the default setting, it covers.out
,.aux
and others. You should achieve what you want just by hittingC-c C-c RET Clean RET
without any customization.C-c C-c
there is no RET. It isC-c C-c
clean RET. Will you please give this as an answer? I will then accept it. Others will find it useful.RET
isn't necessary.