summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/minim/minim-hooks.lua
blob: f11ce27875e5e361adc7ffcdd3842d333b84c0f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

local cb = require ('minim-callbacks')

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
function tex.shipout(nr)
    cb.call_callback('pre_shipout', nr)
    M.primitive_shipout(nr)
end

return M