diff options
author | Hans Hagen <pragma@wxs.nl> | 2023-01-26 19:34:21 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2023-01-26 19:34:21 +0100 |
commit | 83667a906d7cac842635bc5243db70f55b346562 (patch) | |
tree | 6d22734798c775c081c3aecb7f05faf590e6570b /tex/context/base/mkxl/page-blk.lmt | |
parent | b47e8c2cdeeab0bcdb1c4c32328c933f3f8599de (diff) | |
download | context-83667a906d7cac842635bc5243db70f55b346562.tar.gz |
2023-01-26 18:34:00
Diffstat (limited to 'tex/context/base/mkxl/page-blk.lmt')
-rw-r--r-- | tex/context/base/mkxl/page-blk.lmt | 10 |
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 } |