Skip to content

Commit b609233

Browse files
committed
src/latexmkrc: support glossary package
https://tex.stackexchange.com/a/44316
1 parent b392f84 commit b609233

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/latexmkrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1+
$clean_ext .= ' %R.ist %R.xdy';
12
$pdflatex = q/xelatex %O --shell-escape %S/;
3+
4+
5+
add_cus_dep('glo', 'gls', 0, 'run_makeglossaries');
6+
add_cus_dep('acn', 'acr', 0, 'run_makeglossaries');
7+
8+
9+
sub run_makeglossaries {
10+
if ( $silent ) {
11+
system "makeglossaries -q '$_[0]'";
12+
}
13+
else {
14+
system "makeglossaries '$_[0]'";
15+
};
16+
}
17+
18+
19+
push @generated_exts, 'glo', 'gls', 'glg';
20+
push @generated_exts, 'acn', 'acr', 'alg';

0 commit comments

Comments
 (0)