Skip to content

Commit

Permalink
Use latexmkrc to define file exts to clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
elcorto committed Feb 4, 2024
1 parent 4438ca9 commit 34f9066
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions theory/.latexmkrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ $pdf_mode = 1;
# --shell-escape b/c of minted package
# xelatex b/c of font stuff
$pdflatex = "xelatex -interaction=errorstopmode -file-line-error -shell-escape %O %S";

push @generated_exts, "bak", "bbl", "run.xml", "nav", "snm", "vrb", "synctex.*", "listing"
3 changes: 2 additions & 1 deletion theory/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ clean: _restclean
allclean: _restclean
latexmk -C

# Seems like latexmk's "push @generated_exts" doesn't treat directories.
_restclean:
rm -rf _minted-*
rm -f *.bak *.bbl *.run.xml *.nav *.snm *.vrb *.synctex.* *.listing *-SAVE-ERROR
rm -f *-SAVE-ERROR

0 comments on commit 34f9066

Please sign in to comment.