.latexmkrc 626 B

12345678910111213141516171819202122232425262728
  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. add_cus_dep('glo', 'gls', 0, 'run_makeglossaries');
  7. add_cus_dep('acn', 'acr', 0, 'run_makeglossaries');
  8. sub run_makeglossaries {
  9. print "\t\tBulding Glossaries\n";
  10. if ( $silent ) {
  11. system "makeglossaries -q '$_[0]'";
  12. }
  13. else {
  14. system "makeglossaries '$_[0]'";
  15. };
  16. }
  17. sub eps2pdf {
  18. system("epstopdf --hires $_[0].eps");
  19. }
  20. add_cus_dep("eps", "pdf", 0, "eps2pdf");
  21. set_tex_cmds(' -shell-escape -synctex=1 %O %S');