When I run latexmk -pdf -deps, I get a list of files which are my main .tex depedencies.

When I run latexmk -pdf -pvc, I'd like latexmk to re-compile when the main file or a dependency is modified. But this is not the case. It re-compile only if the main file is modified.

Is there a way to correct it ?

Thanks !

1 Answer 1


Yes, latexmk does do a recompilation when a dependent file is modified. This is actually mentioned near the beginning of the latexmk documentation (specifically the third paragraph). I rely on that feature regularly in my uses of latexmk.

  • Thanks for this confirmation. Its seems something has gone wrong in my config as its was ok afterwards. It works fine.Thanks ! Jan 27, 2020 at 14:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .