Cleaning LaTeX with AucTex
Yo emacs boyz how you doin?
Cleaning (La)Tex intermediate files in emacs
invoke:
M-x TeX-clean
to clean intermdiate files, and
C-u M-x TeX-clean
to clean both intermediate files and outputs. or
C-c C-c
then Choose Clean or Clean All
How does it actually work?
TeX-cleanlooks into the variableLaTeX-clean-intermediate-suffixesfor Regexs to search for files to delete when choosingCleanor invoking the functionTeX-cleanwith noC-uprefix.TeX-cleanlooks into the variableLaTeX-clean-intermediate-suffixesANDLaTeX-clean-output-suffixesfor Regexs to search for files to delete when choosingClean Allor invoking the functionTeX-cleanWITHC-uprefix.
Remove other files!
Sadly not all regexes are implemented by default, un-sadly you can easily add them!
;; clean intermdiate tex crap
(add-to-list 'LaTeX-clean-intermediate-suffixes '"-figure[0-9]*\\.\\(pdf\\|md5\\|log\\|dpth\\|dep\\|run\\.xml\\)")
(add-to-list 'LaTeX-clean-intermediate-suffixes '".auxlock")
End
hope it helps! and thanks for checking my glorious blog!
Shameless keywords for better search engine indexing
- clean \usepgfplotslibrary{external} LaTeX
- clean auctex files
- clean regex to auctex clean
- idk too tired heh