summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/mlib-lmp.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2020-03-26 22:27:51 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2020-03-26 22:27:51 +0100
commitd9aa299de0f736f75f90b98ab284e5bc73515949 (patch)
tree080ffe743d8cb15f2c6b8d4f3ca06219cff3228d /tex/context/base/mkiv/mlib-lmp.lua
parent0b0256403b7e111df0ecdb8ca589f20df787dacd (diff)
downloadcontext-d9aa299de0f736f75f90b98ab284e5bc73515949.tar.gz
2020-03-26 21:49:00
Diffstat (limited to 'tex/context/base/mkiv/mlib-lmp.lua')
-rw-r--r--tex/context/base/mkiv/mlib-lmp.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/mlib-lmp.lua b/tex/context/base/mkiv/mlib-lmp.lua
index f000f4282..cf7862d91 100644
--- a/tex/context/base/mkiv/mlib-lmp.lua
+++ b/tex/context/base/mkiv/mlib-lmp.lua
@@ -171,6 +171,7 @@ if CONTEXTLMTXMODE > 0 then
data = io.loaddata(filename),
remap = true,
colormap = colormap,
+ id = filename,
} )
else
local buffer = metapost.getparameter { "buffer" }
@@ -179,6 +180,7 @@ if CONTEXTLMTXMODE > 0 then
data = buffers.getcontent(buffer),
-- remap = true,
colormap = colormap,
+ id = buffer or "buffer",
} )
else
local code = metapost.getparameter { "code" }
@@ -186,6 +188,7 @@ if CONTEXTLMTXMODE > 0 then
mpdirect ( metapost.svgtomp {
data = code,
colormap = colormap,
+ id = "code",
} )
end
end