I know I can tweak $clean_ext
setting inside .latexmkrc
to clean specific files when invoking latexmk -c
. However, it doesn't work for directory.
The directory I want to clean is _minted-<main document name>
. I have tried _minted-%R
, ./_minted-%R
, ./_minted-%R/*
. None of them work.
Best Answer
The only currently available solution is to turn off caching in minted using
\usepackage[cache=false]{minted}
.@JohnCollins:
unlink_or_move
in latexmk.pl does not handle recursive directory removal as well.