summaryrefslogtreecommitdiff
path: root/support/latexmk/example_rcfiles/graphviz-latexmkrc
blob: 4710a954ce805040161d775b1544a8eed43cc367 (plain)
1
2
3
4
5
6
7
8
9
10
11
# For use of graphviz package.

# Use internal latexmk variable to find the names of the pdf file(s)
# to be created by dot.
push @file_not_found, 'runsystem\(dot -Tpdf -o ([^ ]+) ';

add_cus_dep( 'dot', 'pdf', 0, 'dottopdf' );
sub dottopdf {
  system( "dot", "-Tpdf", "-o", "$_[0].pdf", "$_[0].dot" );
}