Skip to content

Commit

Permalink
added latexmk config file for makeglossaries and texindy
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasrizzo committed Jun 5, 2018
1 parent 6c5529e commit fb43089
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .latexmkrc
@@ -0,0 +1,23 @@
add_cus_dep('glo', 'gls', 0, 'run_makeglossaries');
add_cus_dep('acn', 'acr', 0, 'run_makeglossaries');
add_cus_dep('idx', 'ind', 0, 'texindy');

$makeindex = 'texindy %O -o %D %S';

sub run_makeglossaries {
if ( $silent ) {
system "makeglossaries -q '$_[0]'";
}
else {
system "makeglossaries '$_[0]'";
};
}

sub texindy{
system("texindy \"$_[0].idx\"");
}

push @generated_exts, 'glo', 'gls', 'glg';
push @generated_exts, 'acn', 'acr', 'alg';
push @generated_exts, 'slg', 'slo', 'sls';
push @generated_exts, 'bbl', 'loa', 'ins', 'loe', 'mw', 'run.xml', 'xdy';

0 comments on commit fb43089

Please sign in to comment.