summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-pag.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/strc-pag.lua')
-rw-r--r--tex/context/base/strc-pag.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/tex/context/base/strc-pag.lua b/tex/context/base/strc-pag.lua
index bce965546..f70d37d63 100644
--- a/tex/context/base/strc-pag.lua
+++ b/tex/context/base/strc-pag.lua
@@ -6,7 +6,7 @@ if not modules then modules = { } end modules ['strc-pag'] = {
license = "see context related readme files"
}
-local texcount, format = tex.count, string.format
+local texcount = tex.count
local allocate, mark = utilities.storage.allocate, utilities.storage.mark
@@ -94,8 +94,10 @@ function counters.specials.userpage()
end
end
+local f_convert = string.formatters["\\convertnumber{%s}{%s}"]
+
local function convertnumber(str,n)
- return format("\\convertnumber{%s}{%s}",str or "numbers",n)
+ return f_convert(str or "numbers",n)
end
function pages.number(realdata,pagespec)