diff options
author | Hans Hagen <pragma@wxs.nl> | 2022-10-15 12:19:43 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2022-10-15 12:19:43 +0200 |
commit | c0c1dea1daf21f2c21f6d8094f54f67138998baf (patch) | |
tree | 1c9ea4021dd831004eaa41cb4bef34798fae7f46 /tex/context/base/mkxl/page-ini.lmt | |
parent | 0aa93a6d31a45d8df2d8516567b98967ce04f183 (diff) | |
download | context-c0c1dea1daf21f2c21f6d8094f54f67138998baf.tar.gz |
2022-10-15 10:34:00
Diffstat (limited to 'tex/context/base/mkxl/page-ini.lmt')
-rw-r--r-- | tex/context/base/mkxl/page-ini.lmt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tex/context/base/mkxl/page-ini.lmt b/tex/context/base/mkxl/page-ini.lmt index ec2278c01..c2acd7f21 100644 --- a/tex/context/base/mkxl/page-ini.lmt +++ b/tex/context/base/mkxl/page-ini.lmt @@ -34,10 +34,12 @@ local active = false local trace = false trackers.register("pages.mark",function(v) trace = v end) +local c_realpageno = tex.iscount("realpageno") + function pages.mark(name,list,settings) active = true -- - local realpage = texgetcount("realpageno") + local realpage = texgetcount(c_realpageno) if type(settings) == "string" then settings = settings_to_hash(settings) end @@ -111,7 +113,7 @@ end local function marked(name) if active then - local realpage = texgetcount("realpageno") + local realpage = texgetcount(c_realpageno) if last ~= 0 then for i=last,realpage-1 do -- print(last) @@ -132,7 +134,7 @@ end local function markedparameter(name,key) if active then - local pagedata = rawget(data,texgetcount("realpageno")) + local pagedata = rawget(data,texgetcount(c_realpageno)) if pagedata then pagedata = pagedata[name] if pagedata then @@ -223,7 +225,7 @@ local function autopageaction() if active then local nofauto = #autolist if nofauto > 0 then - local realpage = texgetcount("realpageno") + local realpage = texgetcount(c_realpageno) for i=1,nofauto do local entry = autolist[i] local names = entry[1] @@ -254,7 +256,7 @@ local function stopmarked() local nofauto = #autolist if nofauto > 0 then if not texlists.pagehead then - local realpage = texgetcount("realpageno") + local realpage = texgetcount(c_realpageno) for i=1,nofauto do local entry = autolist[i] local names = entry[1] |