1 2 3 4 5 6 7 8 9
# vim: syntax=perl: $pdflatex = 'internal pdflatexwithdot %R %O %S'; sub pdflatexwithdot { for (my $i = 0; $i <= 4; $i++) { system("dot -Tpng LStar_hypothesis" . $i . ".dot > LStar_hypothesis" . $i . ".png"); } return system("pdflatex -shell-escape @_"); }