diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-07-13 20:14:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-07-13 20:14:00 +0200 |
commit | d6b1bbb30b5d03582599faf4132630d46275bb97 (patch) | |
tree | 8ef0cfe83b7369857f3f5e3e88b6bb5edf023170 /tex/context/base/meta-pdh.lua | |
parent | 850a7b29bba45111582a15b674f40f68fbd7ab5e (diff) | |
download | context-d6b1bbb30b5d03582599faf4132630d46275bb97.tar.gz |
beta 2011.07.13 20:14
Diffstat (limited to 'tex/context/base/meta-pdh.lua')
-rw-r--r-- | tex/context/base/meta-pdh.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tex/context/base/meta-pdh.lua b/tex/context/base/meta-pdh.lua index 117300f80..d8eb32793 100644 --- a/tex/context/base/meta-pdh.lua +++ b/tex/context/base/meta-pdh.lua @@ -25,7 +25,6 @@ os.exit() -- only needed for mp output on disk local concat, format, find, gsub, gmatch = table.concat, string.format, string.find, string.gsub, string.gmatch -local texsprint, ctxcatcodes = tex.sprint, tex.ctxcatcodes local tostring, tonumber, select = tostring, tonumber, select local lpegmatch = lpeg.match @@ -155,11 +154,11 @@ end -- from lua to tex function mptopdf.pdfcode(str) - texsprint(ctxcatcodes,"\\pdfliteral{" .. str .. "}") -- \\MPScode + context.pdfliteral(str) -- \\MPScode end function mptopdf.texcode(str) - texsprint(ctxcatcodes,str) + context(str) end -- auxiliary functions @@ -229,7 +228,7 @@ function mptopdf.convertmpstopdf(name) mptopdf.reset() statistics.stoptiming(mptopdf) else - tex.print("file " .. name .. " not found") + context("file " .. name .. " not found") end end |