.latexmkrc 739 B

123456789101112131415161718192021222324252627
  1. # -*- cperl -*-
  2. $ENV{'TEXINPUTS'} = './texmf//:' . $ENV{'TEXINPUTS'};
  3. push @generated_exts, 'glo', 'gls', 'glg';
  4. push @generated_exts, 'acn', 'acr', 'alg';
  5. $clean_ext .= ' %R.ist %R.xdy';
  6. $clean_ext .= ' %R.eqpt-glo %R.tech-glo %R.term-glo';
  7. $clean_ext .= ' %R.eqpt-gls %R.tech-gls %R.term-gls';
  8. $clean_ext .= ' %R.eqpt-glg %R.tech-glg %R.term-glg';
  9. add_cus_dep('glo', 'gls', 0, 'run_makeglossaries');
  10. add_cus_dep('eqpt-glo', 'eqpt-gls', 0, 'run_makeglossaries');
  11. add_cus_dep('acn', 'acr', 0, 'run_makeglossaries');
  12. sub run_makeglossaries {
  13. print "\t\tBulding Glossaries\n";
  14. if ( $silent ) {
  15. system "makeglossaries -q '$_[0]'";
  16. }
  17. else {
  18. system "makeglossaries '$_[0]'";
  19. };
  20. }
  21. set_tex_cmds(' -shell-escape %O %S');