diff options
author | Karl Berry <karl@freefriends.org> | 2022-03-04 22:04:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-03-04 22:04:55 +0000 |
commit | f4b65fd65868a9f68c17fa969bd5533b8c81af68 (patch) | |
tree | 20f68ebb5713403ef628f48ec4c41090013df5bc /Master/texmf-dist/tex/luatex/minim/minim-hooks.lua | |
parent | 2af24efcc003674f1cb52ea3284357faf60540f1 (diff) |
minim* (4mar22)
git-svn-id: svn://tug.org/texlive/trunk@62419 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/minim/minim-hooks.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/minim/minim-hooks.lua | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/luatex/minim/minim-hooks.lua b/Master/texmf-dist/tex/luatex/minim/minim-hooks.lua index c399547c9e7..f11ce27875e 100644 --- a/Master/texmf-dist/tex/luatex/minim/minim-hooks.lua +++ b/Master/texmf-dist/tex/luatex/minim/minim-hooks.lua @@ -1,13 +1,11 @@ --- Adds a callback just before a box is shipped out, opposite to --- 'finish_pdfpage'. - -local alloc = require('minim-alloc') local cb = require ('minim-callbacks') -alloc.remember('minim-hooks') local M = { } +-- Add a callback just before a box is shipped out, opposite to +-- 'finish_pdfpage'. + cb.new_callback('pre_shipout', 'simple') M.primitive_shipout = tex.shipout @@ -16,15 +14,5 @@ function tex.shipout(nr) M.primitive_shipout(nr) end -local shipout_box = alloc.new_box('minim:shipout:box') - -alloc.luadef('minim:shipout', function() - tex.box[shipout_box] = token.scan_list() - cb.call_callback('pre_shipout', shipout_box) - -- we must let tex do the rest, because some other package may have - -- redefined \shipout before us. - tex.sprint(token.create('minim:shipout:do')) -end, 'protected') - return M |