diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/core-ctx.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/core-ctx.lua | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/context/base/core-ctx.lua b/Master/texmf-dist/tex/context/base/core-ctx.lua index eb9003bf1fb..1dad7c2d73a 100644 --- a/Master/texmf-dist/tex/context/base/core-ctx.lua +++ b/Master/texmf-dist/tex/context/base/core-ctx.lua @@ -1,6 +1,6 @@ -if not modules then modules = { } end modules ['supp-fil'] = { +if not modules then modules = { } end modules ['core-ctx'] = { version = 1.001, - comment = "companion to supp-fil.tex", + comment = "companion to core-ctx.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" @@ -18,20 +18,19 @@ function commands.loadctxpreplist() local x = xml.load(ctlname) if x then islocal = xml.found(x,"ctx:preplist[@local=='yes']") - if trace_prepfiles then +--~ if trace_prepfiles then if islocal then commands.writestatus("systems","loading ctx log file (local)") -- todo: m!systems else commands.writestatus("systems","loading ctx log file (specified)") -- todo: m!systems end - end - for r, d, k in xml.elements(x,"ctx:prepfile") do - local dk = d[k] - local name = xml.content(dk) +--~ end + for e in xml.collected(x,"ctx:prepfile") do + local name = xml.text(e) if islocal then name = file.basename(name) end - local done = dk.at['done'] or 'no' + local done = e.at['done'] or 'no' if trace_prepfiles then commands.writestatus("systems","registering %s -> %s",done) end @@ -73,16 +72,16 @@ end local processfile = commands.processfile local doifinputfileelse = commands.doifinputfileelse -function commands.processfile(name,depth) - local prepname = found and resolve(name) +function commands.processfile(name,maxreadlevel) -- overloaded + local prepname = resolve(name) if prepname then return processfile(prepname,0) end - return processfile(name,depth) + return processfile(name,maxreadlevel) end function commands.doifinputfileelse(name,depth) - local prepname = found and resolve(name) + local prepname = resolve(name) if prepname then return doifinputfileelse(prepname,0) end @@ -90,5 +89,5 @@ function commands.doifinputfileelse(name,depth) end function commands.preparedfile(name) - return (found and resolve(name)) or name + return resolve(name) or name end |