-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.latexmkrc
29 lines (22 loc) · 1.06 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
#`-file-line-error` is similar to `--interaction nonstopmode`, but shows the concrete line number
$pdflatex = 'xelatex -shell-escape -file-line-error -interaction=nonstopmode -quiet -synctex=1 %O %S';
$pdf_previewer = 'sioyek';
#automatically call lualatex/pdflatex (instead of latex)
$pdf_mode = 1;
@default_files = ('masters-thesis.tex');
add_cus_dep( 'acn', 'acr', 0, 'makeglossaries' );
add_cus_dep( 'glo', 'gls', 0, 'makeglossaries' );
sub makeglossaries {
my ($name, $path) = fileparse( $$Psource );
return system "makeglossaries -d '$path' '$name'";
}
# Compile the nomenclature (package 'nomencl')
add_cus_dep( 'nlo', 'nls', 0, 'makenlo2nls' );
sub makenlo2nls {
system( "makeindex -s nomencl.ist -o \"$_[0].nls\" \"$_[0].nlo\"" );
}
# enable deletion of *.bbl when calling "latexmk -c"
$bibtex_use = 2;
#remove more files than in the default configuration
@generated_exts = qw(brf acn acr alg aux code ist fls glg glo gz gls glsdefs idx ind lof lot log out thm toc tpt wrt ilg run.xml synctex synctex.gz mw bcf synctex(busy));
$clean_ext .= ' %R.ist %R.xdy';