From 6f0de1c85f9847bc0e1c33b607f16e1a60cfe1e2 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Mon, 13 Nov 2023 21:05:25 +0100 Subject: [PATCH] correct the deletion of pdf in the current at the end of the process --- conf/latexmkrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conf/latexmkrc b/conf/latexmkrc index 63b3c29..08bb0a9 100644 --- a/conf/latexmkrc +++ b/conf/latexmkrc @@ -105,7 +105,11 @@ sub makesout { # Some things to do after all the compile stuff END{ - Run_subst('rm ./*.pdf ./*.aux'); + # Need to correct the following line as it makes the deletion of all the pdf files in the current directory + # and this is not compatible when you have multiple tex files to compile without the same name but in the + # directory. + # Run_subst('rm ./*.pdf ./*.aux'); + Run_subst('rm ./*.aux'); Run_subst('mv ./build/%A.pdf .'); Run_subst('rm -rf ./build'); }