diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-01-17 19:15:07 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-01-17 19:15:07 +0100 |
commit | e200230205ec1297f8d3ade3d491585f85d87fff (patch) | |
tree | 3c1473953256ea8a7144846ff2a55c6ff45e801e /tex/context/base/mkiv/pack-rul.lua | |
parent | b0a00d3509297a53ffb5618cee122e1b1d995f42 (diff) | |
download | context-e200230205ec1297f8d3ade3d491585f85d87fff.tar.gz |
2016-01-17 18:52:00
Diffstat (limited to 'tex/context/base/mkiv/pack-rul.lua')
-rw-r--r-- | tex/context/base/mkiv/pack-rul.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/pack-rul.lua b/tex/context/base/mkiv/pack-rul.lua index 32cd9738e..427a2d11d 100644 --- a/tex/context/base/mkiv/pack-rul.lua +++ b/tex/context/base/mkiv/pack-rul.lua @@ -181,7 +181,7 @@ end implement { name = "doreshapeframedbox", actions = doreshapeframedbox, arguments = "integer" } implement { name = "doanalyzeframedbox", actions = doanalyzeframedbox, arguments = "integer" } -function nodes.maxboxwidth(box) +local function maxboxwidth(box) local boxwidth = getfield(box,"width") if boxwidth == 0 then return 0 @@ -219,4 +219,13 @@ function nodes.maxboxwidth(box) for v in traverse_id(vlist_code,list) do -- no dir etc needed check(v,false) end + return maxwidth end + +nodes.maxboxwidth = maxboxwidth + +implement { + name = "themaxboxwidth", + actions = function(n) context("%isp",maxboxwidth(getbox(n))) end, + arguments = "integer" +} |