diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-05-26 00:22:02 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-05-26 00:22:02 +0200 |
commit | 0aa14799b67298a50dd2c31c249622915e103994 (patch) | |
tree | 42ebb4267fadd4f20fa195daa304cae5a36605cd /tex/context/base/mkiv/supp-box.lua | |
parent | f7049c2619684d6bfe6688d3a669455a6ecb6713 (diff) | |
download | context-0aa14799b67298a50dd2c31c249622915e103994.tar.gz |
2020-05-25 23:38:00
Diffstat (limited to 'tex/context/base/mkiv/supp-box.lua')
-rw-r--r-- | tex/context/base/mkiv/supp-box.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/supp-box.lua b/tex/context/base/mkiv/supp-box.lua index e547c8710..8c615b528 100644 --- a/tex/context/base/mkiv/supp-box.lua +++ b/tex/context/base/mkiv/supp-box.lua @@ -825,3 +825,27 @@ implement { context(limitate(t)) end, } + +if CONTEXTLMTXMODE > 0 then + + + interfaces.implement { + name = "widthuptohere", + public = true, + protected = true, + value = true, + actions = function() + local n = tex.getnest() + local w = 0 + if n.mode == tex.modelevels.horizontal then + local h = nodes.hpack(n.head.next) + w = h.width + h.list = nil + nodes.free(h) + end + return tokens.values.dimension, w + end, + } + + +end |