summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/glossaries/makeglossaries-lite.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-12-16 22:55:05 +0000
committerKarl Berry <karl@freefriends.org>2016-12-16 22:55:05 +0000
commit2e527eaebe9ef04d4d6d1b0c5ac8ff0f331aacad (patch)
tree721613fdae2cd8c2ea107a2a6ad51768261009b6 /Master/texmf-dist/scripts/glossaries/makeglossaries-lite.lua
parent8ea673e9cfeb30456e238a5f138bea79990c46dd (diff)
glossaries (16dec16)
git-svn-id: svn://tug.org/texlive/trunk@42726 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/glossaries/makeglossaries-lite.lua')
-rwxr-xr-xMaster/texmf-dist/scripts/glossaries/makeglossaries-lite.lua22
1 files changed, 20 insertions, 2 deletions
diff --git a/Master/texmf-dist/scripts/glossaries/makeglossaries-lite.lua b/Master/texmf-dist/scripts/glossaries/makeglossaries-lite.lua
index 0aa91654241..ae8bfe2dc1f 100755
--- a/Master/texmf-dist/scripts/glossaries/makeglossaries-lite.lua
+++ b/Master/texmf-dist/scripts/glossaries/makeglossaries-lite.lua
@@ -26,14 +26,16 @@
This work has the LPPL maintenance status `maintained'.
History:
- * 1.2
+ * 1.3
+ - added check for \glsxtr@makeglossaries
+ * 1.2 (2016-05-27)
- added check for \@gls@extramakeindexopts
- added check for nil codepage
* 1.1
- changed first line from lua to texlua
--]]
-thisversion = "1.2 2016-05-27"
+thisversion = "1.3 2016-12-16"
quiet = false
dryrun = false
@@ -399,6 +401,22 @@ for name, glg, gls, glo in
end
+onlytypes = string.match(aux, "\\glsxtr@makeglossaries{([^}]+)}")
+
+if onlytypes ~= nil
+then
+ if not quiet then
+ print(string.format("Only process subset: '%s'", onlytypes))
+ end
+
+ onlyglossaries = {}
+
+ for name in string.gmatch(onlytypes, '([^,]+)') do
+ onlyglossaries[name] = glossaries[name]
+ end
+
+ glossaries = onlyglossaries
+end
if ext == nil
then