forked from vEnhance/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
latexmkrc
49 lines (38 loc) · 1.34 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
46
47
48
49
push @extra_pdflatex_options, '-synctex=1' ;
# This version is better than the one given by official asy doc
# because it will work with latexmk -cd as well.
# Unfortunately, I doubt it works on windows,
# because dirname is a linux command.
sub run_asy {
return system("asy -o \$(dirname '$_[0]') '$_[0]'");
}
add_cus_dep("asy", "eps", 0, "run_asy");
add_cus_dep("asy", "pdf", 0, "run_asy");
add_cus_dep("asy", "tex", 0, "run_asy");
sub pythontex {
system("pythontex --runall true \"$_[0]\"");
system("touch \$(basename \"$_[0]\").pytxmcr");
return;
}
add_cus_dep("pytxcode", "pytxmcr", 0, "pythontex");
$dvi_mode = 0;
$postscript_mode = 0;
$pdf_mode = 4;
$do_cd = 1;
$max_repeat = 7;
$pdf_previewer = "zathura %O %S &> /dev/null &";
$pvc_timeout = 1;
$cleanup_includes_generated = 0;
$cleanup_includes_cusdep_generated = 1;
@generated_exts = ( 'aux', 'bbl', 'bcf', 'fls', 'idx', 'ind', 'lof',
'lot', 'out', 'pre', 'toc', 'nav', 'snm',
'synctex.gz', 'pytxpyg', 'pytxmcr', 'pytxcode',);
# don't hash calc for deep system dependencies
$hash_calc_ignore_pattern{'map'} = '^';
$hash_calc_ignore_pattern{'fmt'} = '^';
$silent = 1;
$hash_calc_ignore_pattern{'luc'}='^';
$hash_calc_ignore_pattern{'luc.gz'}='^';
$hash_calc_ignore_pattern{'gz'}='^';
$hash_calc_ignore_pattern{'ttf:1:nil'}='^';
# vim: ft=perl