summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/node-nut.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-nut.lua
parent1ee48eeafd4e46712a29c91ad704b882f00d765f (diff)
downloadcontext-c209ed36b6aaaa992df8976789c8ba8112f8e5c5.tar.gz
2016-09-04 13:51:00
Diffstat (limited to 'tex/context/base/mkiv/node-nut.lua')
-rw-r--r--tex/context/base/mkiv/node-nut.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/node-nut.lua b/tex/context/base/mkiv/node-nut.lua
index c2c74308d..e158b9325 100644
--- a/tex/context/base/mkiv/node-nut.lua
+++ b/tex/context/base/mkiv/node-nut.lua
@@ -164,6 +164,7 @@ nuts.copy_node = direct.copy
nuts.copy_list = direct.copy_list
nuts.delete = direct.delete
nuts.dimensions = direct.dimensions
+nuts.rangedimensions = direct.rangedimensions
nuts.end_of_math = direct.end_of_math
nuts.flush = direct.flush_node
nuts.flush_node = direct.flush_node
@@ -225,6 +226,23 @@ if LUATEXVERSION < 0.97 then
end
+if not direct.rangedimensions then -- LUATEXVERSION < 0.99
+
+ local dimensions = direct.dimensions
+ local getfield = direct.getfield
+ local findtail = direct.find_tail
+
+ function direct.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
+
+ nuts.rangedimensions = direct.rangedimensions
+
+end
+
local getglue = direct.getglue
local setglue = direct.setglue
local is_zero_glue = direct.is_zero_glue