diff options
author | Karl Berry <karl@freefriends.org> | 2017-11-04 21:12:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-11-04 21:12:37 +0000 |
commit | fafc6938d345721a476b6c87746b07d6beb09bf3 (patch) | |
tree | b7cda47dcfab2d5a9ee00cfa097fb3b75300b391 /Master/texmf-dist/scripts/glossaries/makeglossaries-lite.lua | |
parent | 8ff328d8d6a3cf9e4ce34a6cd1ee676afe63be33 (diff) |
glossaries (4nov17)
git-svn-id: svn://tug.org/texlive/trunk@45691 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/glossaries/makeglossaries-lite.lua')
-rwxr-xr-x | Master/texmf-dist/scripts/glossaries/makeglossaries-lite.lua | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/Master/texmf-dist/scripts/glossaries/makeglossaries-lite.lua b/Master/texmf-dist/scripts/glossaries/makeglossaries-lite.lua index 2b862c5061b..761383190f2 100755 --- a/Master/texmf-dist/scripts/glossaries/makeglossaries-lite.lua +++ b/Master/texmf-dist/scripts/glossaries/makeglossaries-lite.lua @@ -26,6 +26,8 @@ This work has the LPPL maintenance status `maintained'. History: + * 4.34: + - added check for \glsxtr@resource * 4.33: - Version number synchronized with glossaries.sty * 1.3 @@ -37,7 +39,7 @@ - changed first line from lua to texlua --]] -thisversion = "4.33 2017-09-20" +thisversion = "4.34 2017-11-03" quiet = false dryrun = false @@ -49,6 +51,8 @@ logfile = nil isxindy = false +isbib2gls = false + xindylang = nil xindyexec = "xindy" @@ -329,18 +333,31 @@ assert(io.input(auxfile), aux = io.read("*a") +if string.find(aux, "\\glsxtr@resource") ~= nil +then + isbib2gls = true +end + if styfile == nil then styfile = string.match(aux, "\\@istfilename{\"?([^}]*%.?%a*)\"?}") if styfile == nil then - error([[ + if isbib2gls + then + error([[ +No \@istfilename found but found \glsxtr@resource. +You need to run bib2gls not makeglossaries-lite. + ]]) + else + error([[ No \@istfilename found. Did your LaTeX run fail? Did your LaTeX run produce any output? Did you remember to use \makeglossaries? ]]) + end end end |