diff options
Diffstat (limited to 'tex/context/base/mkxl/supp-box.lmt')
-rw-r--r-- | tex/context/base/mkxl/supp-box.lmt | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/tex/context/base/mkxl/supp-box.lmt b/tex/context/base/mkxl/supp-box.lmt index 28c1d44f9..a5bfe1394 100644 --- a/tex/context/base/mkxl/supp-box.lmt +++ b/tex/context/base/mkxl/supp-box.lmt @@ -101,9 +101,18 @@ local setlistcolor = nodes.tracers.colors.setlist local texget = tex.get local texgetbox = tex.getbox +local texisdimen = tex.isdimen local texsetdimen = tex.setdimen local texgetnest = tex.getnest +local d_lastnaturalboxwd = texisdimen("lastnaturalboxwd") +local d_lastnaturalboxht = texisdimen("lastnaturalboxht") +local d_lastnaturalboxdp = texisdimen("lastnaturalboxdp") + +local d_givenwidth = texisdimen("givenwidth") +local d_givenheight = texisdimen("givenheight") +local d_givendepth = texisdimen("givendepth") + local function hyphenatedlist(head,usecolor) local current = head and tonut(head) while current do @@ -409,9 +418,9 @@ do if l then w, h, d = getdimensions(l) end - texsetdimen("lastnaturalboxwd",w) - texsetdimen("lastnaturalboxht",h) - texsetdimen("lastnaturalboxdp",d) + texsetdimen(d_lastnaturalboxwd,w) + texsetdimen(d_lastnaturalboxht,h) + texsetdimen(d_lastnaturalboxdp,d) return w, h, d end @@ -845,9 +854,9 @@ implement { }, }, actions = function(t) - texsetdimen("givenwidth", t.width or 0) - texsetdimen("givenheight",t.height or 0) - texsetdimen("givendepth", t.depth or 0) + texsetdimen(d_givenwidth, t.width or 0) + texsetdimen(d_givenheight,t.height or 0) + texsetdimen(d_givendepth, t.depth or 0) end, } |