![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
20 Sep
2015
20 Sep
'15
10:35 p.m.
Hi Hans, there are two bugs with the \useMPenvironmentbuffer command. 1. The TeX command uses the wrong name to pass the name to Lua: \unexpanded\def\useMPenvironmentbuffer[#1]% - {\clf_mpsetfrombuffer{#1}} + {\clf_mptexsetfrombuffer{#1}} 2. The Lua function in mlib-ctx.lua uses a non existing function to load the buffer content: function mptex.setfrombuffer(name) - environments[#environments+1] = buffers.content(name) + environments[#environments+1] = buffers.getcontent(name) end Wolfgang