1

I use latexmk to compile a project. It should run some bash commands before starting to compile.

I tried to add

$compiling_cmd="date >> /tmp/compiled.log";

to the local .latexmkrc file. But it is only evaluated, if I run latexmk with latexmk -pvc but not with latexmk.

There is a similar question about a post compile hook.

  • As you've found, this method only works in preview-continuous mode (as is documented). This is simply because the uses which I designed it for seemed useful only in preview-continuous mode. To have something that works without that restriction would need a modification of latexmk. It seems it would be a useful extension, I agree. – John Collins Jun 30 at 21:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.