summaryrefslogtreecommitdiff
path: root/tex/context/base/page-lin.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2010-10-19 23:03:00 +0200
committerHans Hagen <pragma@wxs.nl>2010-10-19 23:03:00 +0200
commit33b756529488b2cc6bd6a2786361f8099c023820 (patch)
treed7431c6525d7d57512e6d120abbcccce1002f28a /tex/context/base/page-lin.lua
parentec84960ca720596a893b4e8c3e127f7aab571f10 (diff)
downloadcontext-33b756529488b2cc6bd6a2786361f8099c023820.tar.gz
beta 2010.10.19 23:03
Diffstat (limited to 'tex/context/base/page-lin.lua')
-rw-r--r--tex/context/base/page-lin.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/tex/context/base/page-lin.lua b/tex/context/base/page-lin.lua
index 895f0ec80..186989839 100644
--- a/tex/context/base/page-lin.lua
+++ b/tex/context/base/page-lin.lua
@@ -12,11 +12,9 @@ local trace_numbers = false trackers.register("lines.numbers", function(v) tra
local report_lines = logs.new("lines")
-local format = string.format
-local texsprint, texwrite, texbox = tex.sprint, tex.write, tex.box
-local ctxcatcodes = tex.ctxcatcodes
+local texbox = tex.box
-local attributes, nodes, node = attributes, nodes, node
+local attributes, nodes, node, context = attributes, nodes, node, context
nodes.lines = nodes.lines or { }
local lines = nodes.lines
@@ -107,7 +105,7 @@ filters.line = filters.line or { }
function filters.line.default(data)
-- helpers.title(data.entries.linenumber or "?",data.metadata)
- texsprint(ctxcatcodes,format("\\convertnumber{%s}{%s}",data.entries.conversion or "numbers",data.entries.linenumber or "0"))
+ context.convertnumber(data.entries.conversion or "numbers",data.entries.linenumber or "0")
end
function filters.line.page(data,prefixspec,pagespec) -- redundant
@@ -115,7 +113,7 @@ function filters.line.page(data,prefixspec,pagespec) -- redundant
end
function filters.line.linenumber(data) -- raw
- texwrite(data.entries.linenumber or "0")
+ context(data.entries.linenumber or "0")
end
-- boxed variant, todo: use number mechanism