4

This question already has an answer here:

Is it possible to tell latexmk to execute mpost paper.mp after each compilation run if paper.mp has changed?

I tried to create a custom latexmkrc rule:

add_cus_dep('mp', '1', 0, 'mpost');
sub mpost {
 system "mpost $name" ;
 popd();
 return 0;
}

But this does not seem to work

marked as duplicate by Heiko Oberdiek, dustin, Claudio Fiandrino, Guido, m0nhawk Sep 16 '13 at 15:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4

This seems to work:

add_cus_dep('mp', '1', 0, 'mpost');
sub mpost {
 return system("mpost $_[0].mp");
}

See answer to question on latexmk and feynmp for a more complete solution.

Not the answer you're looking for? Browse other questions tagged or ask your own question.