summaryrefslogtreecommitdiff
path: root/tex/context/base/page-lin.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/page-lin.lua')
-rw-r--r--tex/context/base/page-lin.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/tex/context/base/page-lin.lua b/tex/context/base/page-lin.lua
index 7e8e9ad8a..e6b500e8b 100644
--- a/tex/context/base/page-lin.lua
+++ b/tex/context/base/page-lin.lua
@@ -12,6 +12,8 @@ local trace_numbers = false trackers.register("lines.numbers", function(v) tra
local report_lines = logs.reporter("lines")
+local texbox = tex.box
+
local attributes, nodes, node, context = attributes, nodes, node, context
nodes.lines = nodes.lines or { }
@@ -21,8 +23,6 @@ lines.data = lines.data or { } -- start step tag
local data = lines.data
local last = #data
-local texgetbox = tex.getbox
-
lines.scratchbox = lines.scratchbox or 0
local leftmarginwidth = nodes.leftmarginwidth
@@ -208,7 +208,7 @@ local function identify(list)
end
function boxed.stage_zero(n)
- return identify(texgetbox(n).list)
+ return identify(texbox[n].list)
end
-- reset ranges per page
@@ -217,9 +217,9 @@ end
function boxed.stage_one(n,nested)
current_list = { }
- local box = texgetbox(n)
- if box then
- local list = box.list
+ local head = texbox[n]
+ if head then
+ local list = head.list
if nested then
list = identify(list)
end
@@ -268,7 +268,7 @@ function boxed.stage_two(n,m)
if #current_list > 0 then
m = m or lines.scratchbox
local t, tn = { }, 0
- for l in traverse_id(hlist_code,texgetbox(m).list) do
+ for l in traverse_id(hlist_code,texbox[m].list) do
tn = tn + 1
t[tn] = copy_node(l)
end