summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-09-10 18:06:00 +0200
committerHans Hagen <pragma@wxs.nl>2013-09-10 18:06:00 +0200
commitc43315bbcee9c1216def83861317eae1729a16d2 (patch)
treee824484b844e7cfd8eda4013e08e52895cc1dbd9
parente6734b0c6499a51dec0e834b68d0ac579602e1eb (diff)
downloadcontext-c43315bbcee9c1216def83861317eae1729a16d2.tar.gz
beta 2013.09.10 18:06
-rw-r--r--tex/context/base/context-version.pdfbin4115 -> 4108 bytes
-rw-r--r--tex/context/base/mlib-pdf.lua18
-rw-r--r--tex/context/base/status-files.pdfbin24752 -> 24764 bytes
3 files changed, 10 insertions, 8 deletions
diff --git a/tex/context/base/context-version.pdf b/tex/context/base/context-version.pdf
index a80e91311..dfd432aed 100644
--- a/tex/context/base/context-version.pdf
+++ b/tex/context/base/context-version.pdf
Binary files differ
diff --git a/tex/context/base/mlib-pdf.lua b/tex/context/base/mlib-pdf.lua
index 1e3f4ef49..5e60999c1 100644
--- a/tex/context/base/mlib-pdf.lua
+++ b/tex/context/base/mlib-pdf.lua
@@ -292,14 +292,16 @@ metapost.urx = 0
metapost.ury = 0
function commands.mprunvar(key)
- local value = variables and variables[key]
- local vtype = type(value)
- if tvalue == "table" then
- context(concat(value," "))
- elseif tvalue == "number" or tvalue == "boolean" then
- context(concat(value,tostring(value)))
- elseif tvalue == "string" then
- context(concat(value," "))
+ local value = metapost.variables[key]
+ if value ~= nil then
+ local tvalue = type(value)
+ if tvalue == "table" then
+ context(concat(value," "))
+ elseif tvalue == "number" or tvalue == "boolean" then
+ context(tostring(value))
+ elseif tvalue == "string" then
+ context(value)
+ end
end
end
diff --git a/tex/context/base/status-files.pdf b/tex/context/base/status-files.pdf
index 975b88348..229f9506b 100644
--- a/tex/context/base/status-files.pdf
+++ b/tex/context/base/status-files.pdf
Binary files differ