diff options
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 |