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-clean
looks into the variableLaTeX-clean-intermediate-suffixes
for Regexs to search for files to delete when choosingClean
or invoking the functionTeX-clean
with noC-u
prefix.TeX-clean
looks into the variableLaTeX-clean-intermediate-suffixes
ANDLaTeX-clean-output-suffixes
for Regexs to search for files to delete when choosingClean All
or invoking the functionTeX-clean
WITHC-u
prefix.
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