diff options
author | Max-001 <80035972+Max-001@users.noreply.github.com> | 2024-09-18 14:17:40 +0200 |
---|---|---|
committer | Max-001 <80035972+Max-001@users.noreply.github.com> | 2024-09-18 14:17:40 +0200 |
commit | 03c0fd88e919a8f6d1553f8270483b445ea92202 (patch) | |
tree | 3c2314f97c7b2e6f9262f751951185b6bd512be8 /latexmkrc | |
parent | f923835a5e82d727dc27d61ef9ef9d731580b0c9 (diff) | |
parent | 9f736b9e3d4b20c7dae1063bd572c1f802cde649 (diff) |
Merge remote-tracking branch 'origin/master' into max/research
Diffstat (limited to 'latexmkrc')
-rw-r--r-- | latexmkrc | 17 |
1 files changed, 13 insertions, 4 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; @@ -14,19 +16,26 @@ $clean_ext .= ' %R.ist %R.xdy bbl run.xml'; push @file_not_found, '^Package .* No file `([^\\\']*)\\\''; push @generated_exts, 'glo', 'gls', 'glg'; - add_cus_dep('aux', 'glstex', 0, 'bib2gls'); sub bib2gls { - return system "bib2gls '$_[0]'"; + return Run_msg("bib2gls $_[0]"); } add_cus_dep('puml', 'eps', 0, 'plantuml'); sub plantuml { - return system "plantuml -teps '$_[0].puml'"; + return Run_msg("plantuml -teps $_[0].puml"); } add_cus_dep('txt', 'tex', 0, 'time2tex'); sub time2tex { - return system "./time2tex.py '$_[0].txt' > '$_[0].tex'"; + return Run_msg("python3 @{[catfile('scripts', 'time2tex.py')]} $_[0].txt"); } +add_cus_dep('toml', 'tex', 0, 'reqs2tex'); +add_cus_dep('toml', 'aux', 0, 'reqs2tex'); +sub reqs2tex { + return Run_msg("python3 @{[catfile('scripts', 'reqs2tex.py')]} $_[0].toml"); +} + +# vim:ft=perl + |