diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-17 12:30:31 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-17 12:30:31 +0200 |
commit | 26c860fc5018b20aac301ebc297db6ed3887b967 (patch) | |
tree | 172d5f0113fcf28ffa7aa30dccbd6074431f8cd0 | |
parent | 8a1a98b8515baa0b7cb24ba2d4932066b72b89a5 (diff) |
fix file spec on Windows
-rw-r--r-- | latexmkrc | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,7 @@ # https://nl.mirrors.cicku.me/ctan/support/latexmk/latexmk.pdf +use File::Spec::Functions; + $pdflatex = "xelatex --interaction=nonstopmode %O %S"; $pdf_mode = 1; $dvi_mode = 0; @@ -26,12 +28,16 @@ sub plantuml { add_cus_dep('txt', 'tex', 0, 'time2tex'); sub time2tex { - return system "python3 scripts/time2tex.py '$_[0].txt'"; + my $script = catfile("scripts", "time2tex.py"); + return system "python3 $script '$_[0].txt'"; } add_cus_dep('toml', 'tex', 0, 'reqs2tex'); add_cus_dep('toml', 'aux', 0, 'reqs2tex'); sub reqs2tex { - return system "python3 scripts/reqs2tex.py '$_[0].toml'"; + my $script = catfile("scripts", "reqs2tex.py"); + return system "python3 $script '$_[0].toml'"; } +# vim:ft=perl + |