-
Notifications
You must be signed in to change notification settings - Fork 0
/
.latexmkrc
85 lines (81 loc) · 1.17 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# vim: set filetype=perl:
$pdf_mode = 1;
set_tex_cmds('-shell-escape -synctex=1 -file-line-error %O %S');
$max_repeat = 5;
# File extensions to remove when cleaning
# Ref: https://www.gitignore.io/api/latex
my @clean_ext = qw(
%R-blx.aux
%R-blx.bib
acn
acr
alg
aux
bbl
bcf
blg
brf
cb
cb2
cpt
cut
dvi
fdb_latexmk
fls
fmt
fot
glg
glo
gls
glsdefs
idx
ilg
ind
ist
lb
listing
loa
loe
lof
log
lol
lot
lox
nav
out
pdfsync
pre
run.xml
snm
soc
synctex
synctex(busy)
synctex.gz
synctex.gz(busy)
tdo
thm
toc
upa
upb
vrb
xcp
xdv
xmpi
xyc
*-converted-to.*
*/*-converted-to.*
*/*/*-converted-to.*
*/*/*/*-converted-to.*
);
$clean_ext = join ' ', @clean_ext;
no warnings 'redefine';
# Overwrite `cleanup1` functions to support more general pattern in $clean_ext.
# Ref: https://github.com/e-dschungel/latexmk-config/blob/master/latexmkrc
sub cleanup1 {
my $dir = fix_pattern( shift );
my $root_fixed = fix_pattern( $root_filename );
foreach (@_) {
(my $name = (/%R/ || /[\*\?]/) ? $_ : "%R.$_") =~ s/%R/$dir$root_fixed/;
unlink_or_move( glob( "$name" ) );
}
}