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?

3
  • 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. Dec 6, 2017 at 4: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 7, 2017 at 10:55
  • Thanks, indeed, the first RET isn't necessary. Dec 10, 2017 at 12:14

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.