2018-06-27 14:05:11 +00:00
|
|
|
###########################
|
|
|
|
# LatexMK config file #
|
|
|
|
###########################
|
|
|
|
|
|
|
|
# where auxiliary files are to be written (don't work with lualatex)
|
2023-08-09 22:26:49 +00:00
|
|
|
# $aux_dir = "aux";
|
2018-06-27 14:05:11 +00:00
|
|
|
|
|
|
|
# where output files are to be written
|
|
|
|
$out_dir = "build";
|
|
|
|
|
2023-08-09 22:26:49 +00:00
|
|
|
$emulate_aux = 1;
|
|
|
|
|
2018-06-27 14:05:11 +00:00
|
|
|
# files to be deleted during a cleanup operation
|
|
|
|
$clean_ext = "nav pre snm synctex.gz bbl vrb";
|
|
|
|
$clean_full_ext = "nav pre snm synctex.gz bbl vrb";
|
|
|
|
push @generated_exts, "nav", "pre", "snm", "synctex.gz", "bbl", "vrb";
|
|
|
|
|
|
|
|
# default excluded files when run without any arguments
|
|
|
|
@default_excluded_files = ("partie*.tex");
|
|
|
|
|
|
|
|
# LaTeX processing program used when run with pdflatex option
|
|
|
|
# i use lualatex and generate a pdf version of the document using pdflatex
|
|
|
|
$pdf_mode = "1";
|
|
|
|
$postscript_mode = $dvi_mode = 0;
|
|
|
|
$pdflatex = "lualatex -shell-escape -synctex=1 -interaction=nonstopmode -halt-on-error %O %S";
|
|
|
|
|
|
|
|
# LaTeX processing program used when run with lualatex option
|
|
|
|
# generate a pdf version of the document using lualatex
|
|
|
|
$pdf_mode = 4;
|
|
|
|
$lualatex = "lualatex -shell-escape -synctex=1 -interaction=nonstopmode -halt-on-error %O %S";
|
|
|
|
|
2023-08-09 22:26:49 +00:00
|
|
|
# sub asy {return system("asy -o '$aux_dir'/ '$_[0]'");}
|
|
|
|
# sub asy {return system("asy -o '$out_dir'/ '$_[0]'");}
|
|
|
|
sub asy {return system("asy '$_[0]'");}
|
|
|
|
add_cus_dep("asy","eps",0,"asy");
|
|
|
|
add_cus_dep("asy","pdf",0,"asy");
|
|
|
|
add_cus_dep("asy","tex",0,"asy");
|
|
|
|
|
|
|
|
END{
|
|
|
|
Run_subst('rm ./*.pdf ./*.aux');
|
|
|
|
Run_subst('mv ./build/%A.pdf .');
|
|
|
|
Run_subst('rm -rf ./build');
|
|
|
|
}
|