diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/lpdf-res.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/lpdf-res.lua | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/lpdf-res.lua b/Master/texmf-dist/tex/context/base/mkiv/lpdf-res.lua index d3c591343fc..8b00835ef84 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/lpdf-res.lua +++ b/Master/texmf-dist/tex/context/base/mkiv/lpdf-res.lua @@ -6,25 +6,23 @@ if not modules then modules = { } end modules ['lpdf-res'] = { license = "see context related readme files" } -local codeinjections = backends.codeinjections +local codeinjections = backends.codeinjections +local implement = interfaces.implement -local nuts = nodes.nuts -local tonut = nodes.tonut +local nuts = nodes.nuts +local tonut = nodes.tonut -local setwhd = nuts.setwhd -local setlist = nuts.setlist +local setwhd = nuts.setwhd +local setlist = nuts.setlist -local new_hlist = nuts.pool.hlist +local new_hlist = nuts.pool.hlist -local boxresources = tex.boxresources -local saveboxresource = boxresources.save -local useboxresource = boxresources.use -local getboxresourcedimensions = boxresources.getdimensions - -local pdfcollectedresources = lpdf.collectedresources +local saveboxresource = tex.saveboxresource +local useboxresource = tex.useboxresource +local getboxresource = tex.getboxresourcedimensions function codeinjections.registerboxresource(n,offset) - local r = saveboxresource(n,nil,pdfcollectedresources(),true,0,offset or 0) -- direct, todo: accept functions as attr/resources + local r = saveboxresource(n,nil,lpdf.collectedresources(),true,0,offset or 0) -- direct, todo: accept functions as attr/resources return r end @@ -37,5 +35,5 @@ function codeinjections.restoreboxresource(index) end function codeinjections.boxresourcedimensions(index) - return getboxresourcedimensions(index) + return getboxresource(index) end |