4

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?

deshmukh
  • 1,912
  • 14
  • 31
  • The variable you're looking for is called LaTeX-clean-intermediate-suffixes. With the default setting, it covers .out, .aux and others. You should achieve what you want just by hitting C-c C-c RET Clean RET without any customization. – Arash Esbati Dec 06 '17 at 04:41
  • @ArashEsbati That was perfect. Except that after C-c C-c there is no RET. It is C-c C-c clean RET. Will you please give this as an answer? I will then accept it. Others will find it useful. – deshmukh Dec 07 '17 at 10:55
  • Thanks, indeed, the first RET isn't necessary. – Arash Esbati Dec 10 '17 at 12:14

1 Answers1

8

Actually, 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.

Arash Esbati
  • 1,975
  • 1
  • 8
  • 14