summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/page-blk.lmt
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkxl/page-blk.lmt')
-rw-r--r--tex/context/base/mkxl/page-blk.lmt10
1 files changed, 6 insertions, 4 deletions
diff --git a/tex/context/base/mkxl/page-blk.lmt b/tex/context/base/mkxl/page-blk.lmt
index 2078245e4..4a4441fd1 100644
--- a/tex/context/base/mkxl/page-blk.lmt
+++ b/tex/context/base/mkxl/page-blk.lmt
@@ -10,6 +10,8 @@ local context = context
local implement = interfaces.implement
local texgetcount = tex.getcount
+local c_realpageno = tex.iscount("realpageno")
+
local blocks = { }
local block = false
@@ -17,7 +19,7 @@ implement {
name = "startpageblock",
arguments = "string",
actions = function(s)
- local p = texgetcount("realpageno")
+ local p = texgetcount(c_realpageno)
block = { p, p }
blocks[s] = block
end,
@@ -26,7 +28,7 @@ implement {
implement {
name = "stoppageblock",
actions = function()
- local p = texgetcount("realpageno") - 1
+ local p = texgetcount(c_realpageno) - 1
block[2] = p
end,
}
@@ -76,7 +78,7 @@ implement {
name = "startprerollpageblock",
arguments = "string",
actions = function(name)
- currentrealpage = texgetcount("realpageno")
+ currentrealpage = texgetcount(c_realpageno)
currentpreroll = name
end
}
@@ -84,7 +86,7 @@ implement {
implement {
name = "stopprerollpageblock",
actions = function()
- prerolled[currentpreroll] = texgetcount("realpageno") - currentrealpage
+ prerolled[currentpreroll] = texgetcount(c_realpageno) - currentrealpage
currentpreroll = false
end
}