diff options
Diffstat (limited to 'tex/context/base/mkxl/node-res.lmt')
-rw-r--r-- | tex/context/base/mkxl/node-res.lmt | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tex/context/base/mkxl/node-res.lmt b/tex/context/base/mkxl/node-res.lmt index daf0187e8..6fed08b63 100644 --- a/tex/context/base/mkxl/node-res.lmt +++ b/tex/context/base/mkxl/node-res.lmt @@ -77,7 +77,7 @@ local setleader = nuts.setleader local setclass = nuts.setclass local setdata = nuts.setdata -local setruledata = nuts.setruledata +local setoffsets = nuts.setoffsets local setvalue = nuts.setvalue local copy_nut = nuts.copyonly @@ -188,6 +188,7 @@ local userrule = register_nut(new_nut(rule_code,rulecodes.user)) -- local outlinerule = register_nut(new_nut(rule_code,rulecodes.outline)) -- setdirection(rule, lefttoright_code) local imagerule = register_nut(new_nut(rule_code,rulecodes.image)) -- setdirection(rule, lefttoright_code) local boxrule = register_nut(new_nut(rule_code,rulecodes.box)) -- setdirection(rule, lefttoright_code) +local virtualrule = register_nut(new_nut(rule_code,rulecodes.virtual)) -- setdirection(rule, lefttoright_code) local hlist = register_nut(new_nut(nodecodes.hlist)) setdirection(hlist,lefttoright_code) local vlist = register_nut(new_nut(nodecodes.vlist)) setdirection(vlist,lefttoright_code) @@ -382,7 +383,7 @@ function nutpool.outlinerule(width,height,depth,line) -- w/h/d == nil will let t setwhd(n,width,height,depth) end if line then - setruledata(n,round(line)) -- has to be an integer + setdata(n,round(line)) -- has to be an integer end return n end @@ -403,6 +404,15 @@ function nutpool.boxrule(width,height,depth) -- w/h/d == nil will let them adapt return n end +function nutpool.virtualrule(width,height,depth) -- w/h/d == nil will let them adapt + local n = copy_nut(virtualrule) + if width or height or depth then + setdata(n,width) + setoffsets(n,nil,nil,height,depth) + end + return n +end + local function new_leader(width,list) local n = copy_nut(cleader) if width then |