Files
Scrap-Web/manual/.latexmkrc

22 lines
942 B
Perl

# Build configuration for the SSW 590 DevOps IT manual.
# Usage (from the repository root): latexmk devopsAssignment.tex
# Produce a PDF with pdflatex.
$pdf_mode = 1;
# -shell-escape : required by the minted package (calls Python Pygments)
# -interaction=nonstopmode, -halt-on-error : stop on the first LaTeX error
# instead of waiting for input, so CI fails clearly
# -file-line-error : print errors as file:line:message
$pdflatex = 'pdflatex -shell-escape -interaction=nonstopmode -halt-on-error -file-line-error %O %S';
# Run makeglossaries when the glossary or acronym inputs change.
# (bibtex and makeindex are handled by latexmk automatically.)
add_cus_dep('glo', 'gls', 0, 'run_makeglossaries');
add_cus_dep('acn', 'acr', 0, 'run_makeglossaries');
sub run_makeglossaries {
return system("makeglossaries \"$_[0]\"");
}
push @generated_exts, 'glo', 'gls', 'glg', 'acn', 'acr', 'alg', 'ist';