This repository has been archived on 2024-07-01. You can view files and clone it, but cannot push or open issues or pull requests.
Praxisbericht-Template/.latexmkrc

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-09-15 13:30:07 +00:00
# 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';
2023-09-15 13:30:07 +00:00
$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
2023-09-15 13:30:07 +00:00
$pdf_mode = 1;
# Keep auxiliary files
$clean_ext = " ";
2023-09-15 13:30:07 +00:00
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;