summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/mlib-lmp.lua
diff options
context:
space:
mode:
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