### .latexmkrc file.
### For use with latexmk shell script.
### Instructions for use:
### Put a copy of this file in the directory that contains the current job.
### Comment out the parts that are not applicable for the current job.


## shell escape
$latex = "latex --shell-escape";
$pdflatex = "pdflatex --shell-escape";


## makeglossaries (for the glossaries package)
add_cus_dep('glo', 'gls', 0, 'makeglossaries');
add_cus_dep('acn', 'acr', 0, 'makeglossaries');
sub makeglossaries {
   system("makeglossaries $_[0]");
}


## -- Sources regarding glossary commands
# http://ctan.tug.org/tex-archive/support/latexmk/example_rcfiles/
# http://tex.stackexchange.com/questions/1226/how-to-make-latexmk-use-makeglossaries