Is there something like a "post compile hook" for latexmk.
I want to configure latexmk to run some scripts automatically after a compilation process is completed.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityYes. Look at the latexmk documentation for the configuration variables $compiling_cmd
, $success_cmd
and $failure_cmd
.
N.B. In response to a comment: The above only work in preview-continuous mode.
$success_cmd
but it didn't work. Then I just tried the more simple variant $success_cmd = "okular";
just to start okular
for testing purposes after successful compilation, however this also doesn't work. By the way, it says that the pdflatex rule is out of date...