diff options
Diffstat (limited to 'tex/context/base/strc-pag.lua')
-rw-r--r-- | tex/context/base/strc-pag.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/strc-pag.lua b/tex/context/base/strc-pag.lua index fde2de942..3dc70b6a3 100644 --- a/tex/context/base/strc-pag.lua +++ b/tex/context/base/strc-pag.lua @@ -9,7 +9,6 @@ if not modules then modules = { } end modules ['strc-pag'] = { local texcount, format = tex.count, string.format local ctxcatcodes = tex.ctxcatcodes -local texsprint, texwrite = tex.sprint, tex.write local allocate, mark = utilities.storage.allocate, utilities.storage.mark local trace_pages = false trackers.register("structures.pages", function(v) trace_pages = v end) @@ -28,6 +27,7 @@ local counters = structures.counters local counterdata = counters.data local variables = interfaces.variables +local context = context -- storage @@ -94,7 +94,7 @@ function pages.number(realdata,pagespec) processors.sprint(ctxcatcodes,starter) end if conversion ~= "" then - texsprint(ctxcatcodes,format("\\convertnumber{%s}{%s}",conversion,userpage)) + context.convertnumber(conversion,userpage) else if conversionset == "" then conversionset = "default" end local theconversion = sets.get("structure:conversions",block,conversionset,1,"numbers") -- to be checked: 1 |