I'm using latexmk Version 4.41. Calling latexmk -pdf document_template.tex compiles fine without any errors. However when I attempt to output all the aux files into a folder tmp with the following command:
latexmk -auxdir=./tmp/ -pdf document_template.tex
I get the following error:
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
pdflatex: (Pdf)LaTeX failed to generate the expected log file 'tmp/document_template.log'
Latexmk: Did not finish processing file 'document_template.tex':
(Pdf)LaTeX failed to generate the expected log file 'tmp/document_template.log'
Latexmk: Use the -f option to force complete processing,
unless error was exceeding maximum runs of latex/pdflatex.
And only the .aux and the .fdb_latexmk file will be in the .\tmp folder, whereas the rest of the aux files are in the same folder as the .tex document. What am I doing wrong?
ltx2anywhich deals with most of the resulting problems. – samcarter_is_at_topanswers.xyz Mar 31 '18 at 14:02