aboutsummaryrefslogtreecommitdiff
path: root/latexmkrc
blob: 5a4906434c78c08081545ffd2010a71098b5a36a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# https://nl.mirrors.cicku.me/ctan/support/latexmk/latexmk.pdf

$pdflatex = "xelatex --interaction=nonstopmode %O %S";
$pdf_mode = 1;
$dvi_mode = 0;
$postscript_mode = 0;
$clean_ext .= ' %R.ist %R.xdy bbl run.xml';
@default_files = (
	'example',
	'plan',
	'research',
	'timerep',
);

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]'";
}

add_cus_dep('puml', 'eps', 0, 'plantuml');
sub plantuml {
  return system "plantuml -teps '$_[0].puml'";
}

add_cus_dep('txt', 'tex', 0, 'time2tex');
sub time2tex {
	return system "python3 scripts/time2tex.py '$_[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'";
}