diff options
author | Hans Hagen <pragma@wxs.nl> | 2014-07-26 13:05:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2014-07-26 13:05:00 +0200 |
commit | b7fbedf4562261860ffdef92af2cf9cf576373b0 (patch) | |
tree | b8908b45db8018bcf707609a93d6ffdc9aee5886 /tex/context/base/grph-inc.lua | |
parent | 552aceb88e5e5e77a9263144180139a6ac95646c (diff) | |
download | context-b7fbedf4562261860ffdef92af2cf9cf576373b0.tar.gz |
beta 2014.07.26 13:05
Diffstat (limited to 'tex/context/base/grph-inc.lua')
-rw-r--r-- | tex/context/base/grph-inc.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tex/context/base/grph-inc.lua b/tex/context/base/grph-inc.lua index 9ee5c6199..d42d8b225 100644 --- a/tex/context/base/grph-inc.lua +++ b/tex/context/base/grph-inc.lua @@ -60,6 +60,8 @@ local images = img local hasscheme = url.hasscheme local urlhashed = url.hashed +local resolveprefix = resolvers.resolve + local texgetbox = tex.getbox local texsetbox = tex.setbox @@ -869,7 +871,7 @@ local function locate(request) -- name, format, cache else -- type given for i=1,#figure_paths do - local path = figure_paths[i] + local path = resolveprefix(figure_paths[i]) -- we resolve (e.g. jobfile:) local check = path .. "/" .. askedname -- we pass 'true' as it can be an url as well, as the type -- is given we don't waste much time @@ -935,7 +937,7 @@ local function locate(request) -- name, format, cache -- local name = file.replacesuffix(askedbase,suffix) local name = file.replacesuffix(askedname,suffix) for i=1,#figure_paths do - local path = figure_paths[i] + local path = resolveprefix(figure_paths[i]) -- we resolve (e.g. jobfile:) local check = path .. "/" .. name local isfile = internalschemes[urlhashed(check).scheme] if not isfile then @@ -963,7 +965,7 @@ local function locate(request) -- name, format, cache report_inclusion("unknown format, using path strategy") end for i=1,#figure_paths do - local path = figure_paths[i] + local path = resolveprefix(figure_paths[i]) -- we resolve (e.g. jobfile:) for j=1,#figures_order do local format = figures_order[j] local list = figures_formats[format].list or { format } @@ -1588,7 +1590,7 @@ local function bases_find(basename,askedlabel) if base[2] == nil then -- no yet located for i=1,#figure_paths do - local path = figure_paths[i] + local path = resolveprefix(figure_paths[i]) -- we resolve (e.g. jobfile:) local xmlfile = path .. "/" .. basename if io.exists(xmlfile) then base[2] = xmlfile |