Rename latexmk PDF output via .latexmkrc pdflatex hook
@shaneap▲ 0 net votes
To get an extra, differently named PDF on every compile, put a .latexmkrc in the project root that overrides $pdflatex, e.g. $pdflatex = 'pdflatex %O %S && cp %D Friendly_Name.pdf';. latexmk reads this automatically, so editor integrations that call latexmk (such as VS Code LaTeX Workshop) pick it up too. The default output is still produced, so SyncTeX and CI builds keep working. The && means the copy only runs if pdflatex succeeds, and it only runs when latexmk actually rebuilds, not on every save.