summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/latexmk/example_rcfiles/glossary_latexmkrc
blob: 55edecba09c27c46cd2ca08e3ebb40f120983063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This shows how to use the glossary package
# (http://www.ctan.org/tex-archive/macros/latex/contrib/glossary) and
# the glossaries package
# (http://www.ctan.org/tex-archive/macros/latex/contrib/glossaries)
# with latexmk.  Note that there are important differences between
# these two packages, so you should take careful note of the comments
# below.



# 1. For glossaries using glossary package

add_cus_dep('glo', 'gls', 0, 'makeglo2gls');
sub makeglo2gls {
    system("makeindex -s '$_[0]'.ist -t '$_[0]'.glg -o '$_[0]'.gls '$_[0]'.glo");
}



# 2. For acronyms using glossary package:

add_cus_dep('acr', 'acn', 0, 'makeacr2acn');
sub makeacr2acn {
    system("makeindex -s '$_[0]'.ist -t '$_[0]'.alg -o '$_[0]'.acn '$_[0]'.acr");
}


# ===> 3. If you use the package glossaries rather than the package
# glossary, you need to EXCHANGE acn and acr in the above.