diff --git a/latex/latexmkrc b/latex/latexmkrc
index 354989661b049680f10df0fd73a397724f5f4211..023726352b72e2a97860b6d7d55d58458ae27b6a 100644
--- a/latex/latexmkrc
+++ b/latex/latexmkrc
@@ -1,4 +1,6 @@
-$xdvipdfmx = "xdvipdfmx -z 0 -o %D %O %S";
+$xdvipdfmx = "xdvipdfmx -z 9 -o %D %O %S";
+$pdflatex = 'pdflatex --shell-escape';
+$xelatex = 'xelatex -shell-escape';
 $dvi_mode = 0;
 $postscript_mode = 0;
 $hash_calc_ignore_pattern{'timestamp'} = '^';