summaryrefslogtreecommitdiff
path: root/support/latexmk/example_rcfiles
diff options
context:
space:
mode:
Diffstat (limited to 'support/latexmk/example_rcfiles')
-rw-r--r--support/latexmk/example_rcfiles/graphviz-latexmkrc11
-rw-r--r--support/latexmk/example_rcfiles/sagetex_latexmkrc3
2 files changed, 13 insertions, 1 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" );
+}
+
diff --git a/support/latexmk/example_rcfiles/sagetex_latexmkrc b/support/latexmk/example_rcfiles/sagetex_latexmkrc
index a97702a9c7..1b6fc7ed31 100644
--- a/support/latexmk/example_rcfiles/sagetex_latexmkrc
+++ b/support/latexmk/example_rcfiles/sagetex_latexmkrc
@@ -15,7 +15,8 @@
add_cus_dep( 'sage', 'sout', 0, 'makesout' );
-$hash_calc_ignore_pattern{'sage'} = '^( _st_.goboom|print .SageT)';
+#$hash_calc_ignore_pattern{'sage'} = '^( _st_.goboom|print .SageT)';
+$hash_calc_ignore_pattern{'sage'} = '^( _st_.goboom|print .SageT)|(_st_.current_tex_line|SageTeX paused|SageTeX unpaused)';
sub makesout {
system( "sage \"$_[0].sage\"" );
}