From 296cc79bb9c92e8881371eeb54fe0370bcc005ad Mon Sep 17 00:00:00 2001 From: "taha@asks2" Date: Mon, 6 Jun 2022 00:22:43 +0200 Subject: [PATCH] No need to use "-r .latexmkrc" for latexmk command because latexmk will use .latexmkrc file in the working directory without needing to be prompted to do so. In fact, the "-r" argument was causing latexmk to emit a warning, so we are better of without it. --- chertex.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/chertex.sh b/chertex.sh index 950c83e..6d0375e 100755 --- a/chertex.sh +++ b/chertex.sh @@ -344,10 +344,13 @@ if $maintrack; then fi # Run pdflatex, bibtex, and company + # Leaving this if-else for historical reasons, and also to print the message if $ltxmkrc; then - msg "${On_Cyan} Calling LaTeXMK with RC file${NOFORMAT}" + msg "${On_Cyan} Calling LaTeXMK, detected .latemxkrc file${NOFORMAT}" simpledelay.sh 2 - latexmk -r .latexmkrc -pdf -bibtex $jobname + # note: latexmk does not need us to invoke "-r .latexmkrc", it finds and uses + # the RC file automatically (as evidenced by latexmk's output) + latexmk -pdf -bibtex $jobname else msg "${On_Cyan} Calling LaTeXMK${NOFORMAT}" simpledelay.sh 2