summaryrefslogtreecommitdiff
path: root/tex/context/base/core-obj.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/core-obj.lua')
-rw-r--r--tex/context/base/core-obj.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/tex/context/base/core-obj.lua b/tex/context/base/core-obj.lua
index 338ca9d1f..f879ddc8c 100644
--- a/tex/context/base/core-obj.lua
+++ b/tex/context/base/core-obj.lua
@@ -34,6 +34,10 @@ function jobobjects.set(tag,number,page)
collected[tag] = { number, page }
end
+function jobobjects.get(tag)
+ return collected[tag] or tobesaved[tag]
+end
+
function jobobjects.number(tag,default)
local o = collected[tag] or tobesaved[tag]
texsprint((o and o[1]) or default)
@@ -45,5 +49,6 @@ function jobobjects.page(tag,default)
end
function jobobjects.doifelse(tag)
- cs.testcase(collected[tag] or tobesaved[tag])
+ commands.testcase(collected[tag] or tobesaved[tag])
end
+