diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-09-13 10:02:31 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-09-13 10:02:31 +0200 |
commit | a8c525cd14d77b94662021671ef8eb62d5a7fe50 (patch) | |
tree | de834dfbe0fbdf277ca206d59896cacc4f9840c9 /tex/context/base/mkxl/node-res.lmt | |
parent | 0b177b615d126b85d1399fba3cc55bb0d3ddfbba (diff) | |
download | context-a8c525cd14d77b94662021671ef8eb62d5a7fe50.tar.gz |
2021-09-13 09:40:00
Diffstat (limited to 'tex/context/base/mkxl/node-res.lmt')
-rw-r--r-- | tex/context/base/mkxl/node-res.lmt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tex/context/base/mkxl/node-res.lmt b/tex/context/base/mkxl/node-res.lmt index a1fa24bbd..4c456b263 100644 --- a/tex/context/base/mkxl/node-res.lmt +++ b/tex/context/base/mkxl/node-res.lmt @@ -183,6 +183,8 @@ local rule = register_nut(new_nut(rule_code)) -- local emptyrule = register_nut(new_nut(rule_code,rulecodes.empty)) -- setdirection(rule, lefttoright_code) local userrule = register_nut(new_nut(rule_code,rulecodes.user)) -- setdirection(rule, lefttoright_code) 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 hlist = register_nut(new_nut(nodecodes.hlist)) setdirection(hlist,lefttoright_code) local vlist = register_nut(new_nut(nodecodes.vlist)) setdirection(vlist,lefttoright_code) @@ -374,6 +376,22 @@ function nutpool.outlinerule(width,height,depth,line) -- w/h/d == nil will let t return n end +function nutpool.imagerule(width,height,depth) -- w/h/d == nil will let them adapt + local n = copy_nut(imagerule) + if width or height or depth then + setwhd(n,width,height,depth) + end + return n +end + +function nutpool.boxrule(width,height,depth) -- w/h/d == nil will let them adapt + local n = copy_nut(boxrule) + if width or height or depth then + setwhd(n,width,height,depth) + end + return n +end + function nutpool.leader(width,list) local n = copy_nut(cleader) if width then |