Open charlesstaats opened 9 months ago
When I use the latexmkrc given in the asymptote documentation within the vscode editor, the compilation runs smoothly; replacing .latexmkrc with the one in CTAN (above) leads to errors ($TERM not defined , -T...). The only "problem" I see with the simple (original) latexmkrc is that "latexmk -c" do not clean the "pre" files...
The latexmk -c issue was already fixed in commit 3b02ca59cd8f482f42c89d508795879a643d6195 (and in version 2.87).
The point of the proposed CTAN version is to check for dependencies. However, it was based on an old version of latexmkrc, which also lacks the improvement introduced in commit 8c83a8e8710f245bab9833850fd8381c612ea1b9.
A better solution is to add an option to asy to output this information in a format that latexmk can use directly.
The latexmk distribution contains an example file asymptote_latexmkrc that has been developed beyond the one contained in the Asymptote repository. We should probably update the docs to link to that file instead, or else incorporate its innovations into the one in the Asymptote repository.
Some of the things it does:
asy
via the-f
flag.asy
files that are imported or included. (Thus, if those dependencies change, latexmk will know to recompile.)Here's the code of the complete file: