djsutherland / arxiv-collector

A little Python script to collect LaTeX sources for upload to the arXiv.
BSD 3-Clause "New" or "Revised" License
334 stars 23 forks source link

Dependencies are determined using pdflatex, disregarding what is specified in .latexmkrc #22

Open mrd0ll4r opened 1 year ago

mrd0ll4r commented 1 year ago

My arxiv-collector version is:

arxiv_collector.py 0.4.1

Rough situation: I have a paper with many plots generated with R, each containing quite a few datapoints. This doesn't compile with pdflatex due to the limited... dunno, stack? memory? Something like that. It does compile with lualatex, which I've specified in my .latexmkrc:

# LuaLatex
$pdf_mode = 4;

Now, from my understanding, arxiv-collector by default tries to create the dependencies file through latexmk -pdf ..., which apparently overrides my settings and calls pdflatex, which fails.

This can be circumvented like so:

# Save dependencies for arxiv_collector.
$dependents_list = 1;
$deps_file = ".deps";

and

python3 arxiv_collector.py --latexmk-deps .deps ...

But it was a bit surprising.