-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathlatexmkrc
45 lines (36 loc) · 1.13 KB
/
latexmkrc
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
38
39
40
41
42
43
44
45
ensure_path( 'TEXINPUTS', './tex//' );
ensure_path( 'BIBINPUTS', './tex//' );
$pdf_mode = 4;
$out_dir = 'output';
$aux_dir = 'output';
$MSWin_back_slash = 0;
$clean_ext .= " pythontex-files-%R/* pythontex-files-%R";
push @generated_exts, 'pytxcode';
$pythontex = 'pythontex %O %S';
$extra_rule_spec{'pythontex'} = [ 'internal', '', 'mypythontex', "%Y%R.pytxcode", "%Ypythontex-files-%R/%R.pytxmcr", "%R", 1 ];
sub mypythontex {
my $result_dir = $aux_dir1."pythontex-files-$$Pbase";
my $ret = Run_subst( $pythontex, 2 );
rdb_add_generated( glob "$result_dir/*" );
my $fh = new FileHandle $$Pdest, "r";
if ($fh) {
while (<$fh>) {
if ( /^%PythonTeX dependency:\s+'([^']+)';/ ) {
print "Found pythontex dependency '$1'\n";
rdb_ensure_file( $rule, $aux_dir1.$1 );
}
}
undef $fh;
}
else {
warn "mypythontex: I could not read '$$Pdest'\n",
" to check dependencies\n";
}
return $ret;
}
sub pull_julia_code {
system("julia --color=yes jl/pull_julia_code.jl");
}
pull_julia_code();
$lualatex = "lualatex %O -shell-escape %S";
@default_files = ('main');