summaryrefslogtreecommitdiff
path: root/support/latexmk/example_rcfiles/glossary_latexmkrc
diff options
context:
space:
mode:
Diffstat (limited to 'support/latexmk/example_rcfiles/glossary_latexmkrc')
-rw-r--r--support/latexmk/example_rcfiles/glossary_latexmkrc52
1 files changed, 27 insertions, 25 deletions
diff --git a/support/latexmk/example_rcfiles/glossary_latexmkrc b/support/latexmk/example_rcfiles/glossary_latexmkrc
index 5c757f5b43..cd75f2d2d0 100644
--- a/support/latexmk/example_rcfiles/glossary_latexmkrc
+++ b/support/latexmk/example_rcfiles/glossary_latexmkrc
@@ -1,11 +1,9 @@
-# This shows how to use
-# the glossaries package (http://www.ctan.org/pkg/glossaries)
-# the glossaries-extra package (http://www.ctan.org/pkg/glossaries-extra)
-# with latexmk.
+# This shows how to use the glossaries package
+# (http://www.ctan.org/pkg/glossaries) and the glossaries-extra package
+# (http://www.ctan.org/pkg/glossaries-extra) with latexmk.
# N.B. There is also the OBSOLETE glossary package
-# (http://www.ctan.org/pkg/glossary), which has some differences. See items
-# 2 and 3
+# (http://www.ctan.org/pkg/glossary), which has some differences. See item 2.
# 1. If you use the glossaries or the glossaries-extra package, then you use:
@@ -21,22 +19,26 @@
}
-# 2. If you use the OBSOLETE glossary package, then you can do
-
- add_cus_dep( 'glo', 'gls', 0, 'makeglo2gls' );
- sub makeglo2gls {
- system("makeindex -s \"$_[0].ist\" -t \"$_[0].glg\" -o \"$_[0].gls\" \"$_[0].glo\"" );
- }
-
-# 2. If you use the OBSOLETE glossary package, then you can do
-# the following for acronyms:
-
- # ONLY FOR PACKAGE glossary, NOT FOR glossaries and glossaries-extra
- add_cus_dep( 'acr', 'acn', 0, 'makeacr2acn' );
- sub makeacr2acn {
- system( "makeindex -s \"$_[0].ist\" -t \"$_[0].alg\" -o \"$_[0].acn\" \"$_[0].acr\"" );
- }
-
-# ===> WARNING: In the current glossaries and glossaries-extra packages
-# the roles of the .acr and .acn files are exchanged, so the above
-# code will fail with the more modern packages.
+# 2. If you use the OBSOLETE glossary package, then you can do the following:
+# (Note that the code lines are commented out to avoid trouble when this
+# file is simply copied into a latexmkrc or this file is arranged to be
+# read by latexmk, and one of the modern packages glossaries and
+# glossaries-extra is used.)
+
+ ## For the main glossary:
+ #add_cus_dep( 'glo', 'gls', 0, 'makeglo2gls' );
+ #sub makeglo2gls {
+ # system("makeindex -s \"$_[0].ist\" -t \"$_[0].glg\" -o \"$_[0].gls\" \"$_[0].glo\"" );
+ #}
+
+ ## For acronyms:
+ ##
+ ## ===> WARNING: The code below is ONLY FOR PACKAGE glossary, NOT FOR
+ ## glossaries and glossaries-extra. In the current glossaries and
+ ## glossaries-extra packages the roles of the .acr and .acn files are
+ ## exchanged compared with the old glossary package. Hence the the
+ ## code below will fail with the more modern packages.
+ #add_cus_dep( 'acr', 'acn', 0, 'makeacr2acn' );
+ #sub makeacr2acn {
+ # system( "makeindex -s \"$_[0].ist\" -t \"$_[0].alg\" -o \"$_[0].acn\" \"$_[0].acr\"" );
+ #}