summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/node-met.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2016-09-04 15:04:09 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-09-04 15:04:09 +0200
commitc209ed36b6aaaa992df8976789c8ba8112f8e5c5 (patch)
tree750f886c59728842787e58441d39439819050c27 /tex/context/base/mkiv/node-met.lua
parent1ee48eeafd4e46712a29c91ad704b882f00d765f (diff)
downloadcontext-c209ed36b6aaaa992df8976789c8ba8112f8e5c5.tar.gz
2016-09-04 13:51:00
Diffstat (limited to 'tex/context/base/mkiv/node-met.lua')
-rw-r--r--tex/context/base/mkiv/node-met.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/node-met.lua b/tex/context/base/mkiv/node-met.lua
index 1dee3a9f5..efd748b12 100644
--- a/tex/context/base/mkiv/node-met.lua
+++ b/tex/context/base/mkiv/node-met.lua
@@ -76,6 +76,7 @@ nodes.copy_node = node.copy
nodes.copy_list = node.copy_list
nodes.delete = node.delete
nodes.dimensions = node.dimensions
+nodes.rangedimensions = node.rangedimensions
nodes.end_of_math = node.end_of_math
nodes.flush = node.flush_node
nodes.flush_node = node.flush_node
@@ -128,6 +129,23 @@ if LUATEXVERSION < 0.97 then
end
+if not node.rangedimensions then -- LUATEXVERSION < 0.99
+
+ local dimensions = node.dimensions
+ local getfield = node.getfield
+ local findtail = node.find_tail
+
+ function node.rangedimensions(parent,first,last)
+ return dimensions(
+ getfield(parent,"glue_set"), getfield(parent,"glue_sign"), getfield(parent,"glue_order"),
+ first, last or find_tail(first), getfield(parent,"dir")
+ )
+ end
+
+ nodes.rangedimensions = node.rangedimensions
+
+end
+
nodes.effective_glue = node.effective_glue
nodes.getglue = node.getglue
nodes.setglue = node.setglue