43 lines
1.1 KiB
Perl
43 lines
1.1 KiB
Perl
# make file for latex
|
|
@default_files = ('main.tex');
|
|
|
|
# Move all axuiliary files to a separate directory, so they do not clutter up the project directory
|
|
$emulate_aux = 1;
|
|
$aux_dir = "tmp";
|
|
|
|
# Move the compiled files (and synctex) to a separate directory
|
|
$out_dir = 'build';
|
|
|
|
$pdflatex = 'pdflatex %O -interaction=nonstopmode -shell-escape %S';
|
|
|
|
# Specify the bibliography
|
|
$bibtex = 'bibtex %O %B';
|
|
$makeglossaries = 'makeglossaries %O %B';
|
|
|
|
# Continuous preview mode
|
|
$continuous_mode = 1;
|
|
|
|
# Set the program used to generate the PDF
|
|
# 1: pdflatex
|
|
# 2: postscript conversion, don't use this
|
|
# 3: dvi conversion, don't use this
|
|
# 4: lualatex
|
|
# 5: xelatex
|
|
$pdf_mode = 1;
|
|
|
|
# Keep auxiliary files
|
|
$clean_ext = " ";
|
|
|
|
add_cus_dep( 'acn', 'acr', 0, 'makeglossaries' );
|
|
add_cus_dep( 'glo', 'gls', 0, 'makeglossaries' );
|
|
$clean_ext .= " acr acn alg glo gls glg";
|
|
|
|
sub makeglossaries {
|
|
my ($base_name, $path) = fileparse( $_[0] );
|
|
my @args = ( "-q", "-d", $path, $base_name );
|
|
if ($silent) { unshift @args, "-q"; }
|
|
return system "makeglossaries", "-d", $path, $base_name;
|
|
}
|
|
|
|
# Silence warnings
|
|
$silent = 1; |