summaryrefslogtreecommitdiff
path: root/support/latexmk/example_rcfiles/graphviz-latexmkrc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-09-27 03:01:47 +0000
committerNorbert Preining <norbert@preining.info>2021-09-27 03:01:47 +0000
commit30b8c834b941b4c6311906369ce5008fd2e72bf8 (patch)
treeb3c424c023951c9ef64844d8d9b99300e597a5a3 /support/latexmk/example_rcfiles/graphviz-latexmkrc
parent1fdd813fb19929aee2dfa99b2d04cb16c9f9e902 (diff)
CTAN sync 202109270301
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" );
+}
+