summaryrefslogtreecommitdiff
path: root/support/latexmk/example_rcfiles/graphviz-latexmkrc
diff options
context:
space:
mode:
Diffstat (limited to 'support/latexmk/example_rcfiles/graphviz-latexmkrc')
-rw-r--r--support/latexmk/example_rcfiles/graphviz-latexmkrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/support/latexmk/example_rcfiles/graphviz-latexmkrc b/support/latexmk/example_rcfiles/graphviz-latexmkrc
new file mode 100644
index 0000000000..4710a954ce
--- /dev/null
+++ b/support/latexmk/example_rcfiles/graphviz-latexmkrc
@@ -0,0 +1,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" );
+}
+