Add support for out_dir by adding a new replacement to custom build tools
My projects use a custom latexmkrc file in order to build. One of the things this does is set the out_dir to build/ in order to keep the directories tidy (as the folder contains a whole bunch of lecture notes and lab scripts).
$pdf_mode = 1; $pdflatex = 'lualatex -interaction=nonstopmode -shell-escape %O %S'; $out_dir = 'build/'; $silent = 1;
I should be able to use custom commands to make this work, however, as the only placeholders include the full path ($filename and $shortname) I can't set the "file to open" to point to the correct place for the pdf, something like: build/$shortname.pdf - as this results in
Please can you add a placeholder variable which contains just the basename (ie, slides if the file is called slides.tex). Another possible use-case for this would be to allow custom job names (as there are packages which allow the automatic creation of handouts and notes based on the job names).