$hash_calc_ignore_pattern{aux} = '^\\\\gdef\\\\minted@oldcachelist\{,' . '|^\s*default\.pygstyle,' . '|^\s*[[:xdigit:]]+\.pygtex'; $pdflatex = 'lualatex -shell-escape -file-line-error -interaction=nonstopmode -synctex=1 -output-directory=build %O ' . '\'\PassOptionsToPackage{outputdir=build}{minted}\input{%S}\'' . '| texlogsieve'; $aux_dir = 'build'; $bibtex_use = 2; # Amend cleaned extensions $clean_ext .= " fdb_latexmk run.xml synctex.gz"; # Make latexmk quiet $latexmk_silent = 1; # Makeglossaries 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; } sub biber { my ( $base_name, $path ) = fileparse( $_[0] ); my @args = ( "--output-directory", $path, $base_name ); return system "biber", @args; } $silent = 1; # This adds "-interaction batchmode" $silence_logfile_warnings = 1; END { local $?; # do not override previous exit status if ( -s "$root_filename.blg" and open my $bibfile, '<', "$root_filename.blg" ) { print("**********************\n"); print("bibtex/biber messages:\n"); while ( my $line = <$bibfile> ) { if ( $line =~ /You.ve used/ ) { last; } else { print($line); } } close($bibfile); } if ( -s "$root_filename.ilg" and open my $indfile, '<', "$root_filename.ilg" ) { print("*************************\n"); print("makeindex/xindy messages:\n"); while ( my $line = <$indfile> ) { print($line); } close($indfile); } if ( -s "$root_filename.log" ) { print("***************\n"); print("LaTeX messages:\n"); Run_subst("texlogsieve %R.log"); } }