diff options
Diffstat (limited to 'support/latexmk/example_rcfiles/pythontex-latexmkrc')
-rw-r--r-- | support/latexmk/example_rcfiles/pythontex-latexmkrc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/support/latexmk/example_rcfiles/pythontex-latexmkrc b/support/latexmk/example_rcfiles/pythontex-latexmkrc index 825706a630..458c5a4070 100644 --- a/support/latexmk/example_rcfiles/pythontex-latexmkrc +++ b/support/latexmk/example_rcfiles/pythontex-latexmkrc @@ -15,6 +15,13 @@ $clean_ext .= " pythontex-files-%R/* pythontex-files-%R"; push @generated_exts, 'pytxcode'; $pythontex = 'pythontex %O %S'; + +# Specify a rule for running the pythontex program. +# Because of the unusual structure of input and output files, I've used +# an internal hash variable %extra_rule_spec of latexmk to specify the +# rule. Currently the only documentation is in the latexmk source code. +# Probably the following line is stable against future changes in latexmk, +# but that isn't guaranteed. $extra_rule_spec{'pythontex'} = [ 'internal', '', 'mypythontex', "%Y%R.pytxcode", "%Ypythontex-files-%R/%R.pytxmcr", "%R", 1 ]; sub mypythontex { |