$pdf_mode = 1;
$pdflatex = 'pdflatex -interaction=nonstopmode -halt-on-error -file-line-error %O %S';

# Prefer the standard BibTeX executable. Some minimal TeX installations expose
# the binary as bibtex.original instead; fall back to it when needed.
my $bibtex_cmd = `command -v bibtex 2>/dev/null`;
chomp $bibtex_cmd;
if (!$bibtex_cmd) {
    $bibtex_cmd = `command -v bibtex.original 2>/dev/null`;
    chomp $bibtex_cmd;
}
$bibtex_cmd = 'bibtex' if !$bibtex_cmd;
$bibtex = "$bibtex_cmd %O %B";

$clean_ext = 'acn acr alg glg glo gls ist run.xml bcf nav snm vrb';
