vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
533 stars 89 forks source link

Clean up .pre and .asy / .pdf file? #424

Closed user202729 closed 4 months ago

user202729 commented 5 months ago

Currently, if latexmk -C is executed to clean up generated files, the pre and asy files remain around.

We can add the following to latexmkrc:

push @generated_exts, "pre", "%R-*.pdf", "%R-*.asy", "asy/%R-*.pdf", "asy/%R-*.asy";

Problem: if the user happen to have some file that is conveniently named a-1.asy, it will be overwritten even if the user don't use asymptote package. The pre one should definitely be safe, however.

Each of pdf and asy are doubled to handle both the case asydir = empty (default) and asydir = asy/.