diff options
author | Marius <mariausol@gmail.com> | 2010-08-19 10:29:42 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2010-08-19 10:29:42 +0300 |
commit | 7d7e0d3c8d778650105cfb479f31a2bb54d69d50 (patch) | |
tree | e0c4e7d8bf466a70af56be02a0de703bbd09a5af /tex/context/base/mlib-pdf.lua | |
parent | b469b8ec1b494ab72cd462bfc539ce01440e6aaf (diff) | |
download | context-7d7e0d3c8d778650105cfb479f31a2bb54d69d50.tar.gz |
beta 2010.08.19 01:08
Diffstat (limited to 'tex/context/base/mlib-pdf.lua')
-rw-r--r-- | tex/context/base/mlib-pdf.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tex/context/base/mlib-pdf.lua b/tex/context/base/mlib-pdf.lua index 28f9c57ca..27e27eadb 100644 --- a/tex/context/base/mlib-pdf.lua +++ b/tex/context/base/mlib-pdf.lua @@ -12,11 +12,15 @@ local abs, sqrt, round = math.abs, math.sqrt, math.round local report_mplib = logs.new("mplib") -local copy_node, write_node = node.copy, node.write +local mplib = mplib local ctxcatcodes = tex.ctxcatcodes +local copy_node = node.copy +local write_node = node.write metapost = metapost or { } +local metapost = metapost + metapost.multipass = false metapost.n = 0 metapost.optimize = true -- false @@ -63,7 +67,7 @@ metapost.flushers.pdf = { } local savedliterals = nil -local mpsliteral = nodes.register(node.new("whatsit",8)) +local mpsliteral = nodes.pool.register(node.new("whatsit",8)) -- pdfliteral function metapost.flush_literal(d) -- \def\MPLIBtoPDF#1{\ctxlua{metapost.flush_literal(#1)}} if savedliterals then |