latexmkrc (970B)
1 # For more information see: 2 # http://www.ctan.org/pkg/latexmk 3 # https://texdoc.org/serve/latexmk/0 4 5 # By default compile only the file called "main.tex" 6 @default_files = ("main.tex"); 7 8 $pdf_mode = 1; 9 # $out_dir = "logs/"; 10 $pdflatex = "pdflatex -shell-escape -interaction=nonstopmode -synctex=1 %O %S"; 11 12 $clean_ext .= "loa mw nlo nls run.xml xdy"; 13 $clean_full_ext .= "bbl synctex.gz"; 14 15 $bibtex_use = 1.5; 16 17 # Compile the glossary and acronyms list (package "glossaries") 18 add_cus_dep( "acn", "acr", 0, "makeglossaries" ); 19 add_cus_dep( "glo", "gls", 0, "makeglossaries" ); 20 $clean_ext .= " acr acn alg glo gls glg"; 21 sub makeglossaries { 22 my ($base_name, $path) = fileparse( $_[0] ); 23 pushd $path; 24 my $return = system "makeglossaries", $base_name; 25 popd; 26 return $return; 27 } 28 29 # Compile the nomenclature (package "nomencl") 30 add_cus_dep( "nlo", "nls", 0, "makenlo2nls" ); 31 sub makenlo2nls { 32 system("makeindex -s nomencl.ist -o \"$_[0].nls\" \"$_[0].nlo\""); 33 }