I'm using latexmk to build my latex files. The command latexmk -cd E:\work\foo.tex used to work fine until I updated my latexmk to ver 4.41 using texlive's tlmgr, and suddenly the -cd option's no longer working: it says "no such file or directory" and quits. I can manually cd to the directory and latexmk works fine there, but I've been using a script to call it from a gui (e.g. sublimetext). If I remove the -cd option it will build in the sublime program directory which is not what I want. How to fix that?

  • 2
    There is indeed a problem. One bug with the -cd option was fixed in the newly released v. 4.41 of latexmk, but the fix caused another bug which I didn't detect. Until I correct the problem, I suggest reverting to v. 4.39, which can be obtained at users.phys.psu.edu/~collins/latexmk/versions.html Jan 9, 2015 at 15:45
  • @david: +1. In the meantime, I put a cd in my script before the latexmk. Doesn't that work for you? Jan 11, 2015 at 21:31
  • @Ramashalanka I got in touch with the author of latexmk (John Collins) and he had a bug-fix. Wait for 4.42 or as John Collins suggested, revert to 4.39 for the time being. Jan 12, 2015 at 2:52
  • Yes, I saw that. Anyway, 4.42 is available now and seems to fix the problem. Jan 13, 2015 at 22:26


You must log in to answer this question.

Browse other questions tagged .