summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/scrn-wid.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/scrn-wid.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/scrn-wid.lua18
1 files changed, 13 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/context/base/scrn-wid.lua b/Master/texmf-dist/tex/context/base/scrn-wid.lua
index 6fdc4fca0d6..4ad46761ee8 100644
--- a/Master/texmf-dist/tex/context/base/scrn-wid.lua
+++ b/Master/texmf-dist/tex/context/base/scrn-wid.lua
@@ -75,7 +75,7 @@ function attachments.register(specification) -- beware of tag/registered mixup(t
checkbuffer(specification)
attachments[registered] = specification
if trace_attachments then
- report_attachments("registering '%s'",registered)
+ report_attachments("registering %a",registered)
end
return specification
end
@@ -85,7 +85,7 @@ function attachments.insert(specification)
local r = attachments[registered]
if r then
if trace_attachments then
- report_attachments("including registered '%s'",registered)
+ report_attachments("including registered %a",registered)
end
for k, v in next, r do
local s = specification[k]
@@ -94,7 +94,7 @@ function attachments.insert(specification)
end
end
elseif trace_attachments then
- report_attachments("including unregistered '%s'",registered)
+ report_attachments("including unregistered %a",registered)
end
checkbuffer(specification)
return nodeinjections.attachfile(specification)
@@ -167,11 +167,19 @@ function renderings.rendering(label)
end
end
-function renderings.var(label,key)
+local function var(label,key)
local rn = renderings[label]
- context(rn and rn[key] or "")
+ return rn and rn[key] or ""
end
+renderings.var = var
+
+function commands.renderingvar(label,key)
+ context(var(label,key))
+end
+
+commands.registerrendering = renderings.register
+
-- Rendering:
function commands.insertrenderingwindow(specification)