![](https://secure.gravatar.com/avatar/413051f5ef37416e8bd7c228ea721eb9.jpg?s=120&d=mm&r=g)
Hi Hans, I see that you've released the LuaMetaTeX source code, yay! I'm really impressed with how easy it is to build, and with how quickly it builds. Can you please apply this patch to the LuaMetaTeX source code: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git source/lua/lmtnodelib.c source/lua/lmtnodelib.c index ff98a70..1aade86 100644 --- source/lua/lmtnodelib.c +++ source/lua/lmtnodelib.c @@ -6557,10 +6557,7 @@ static int nodelib_common_getfield(lua_State *L, int direct, halfword n) break; case insert_node: if (lua_key_eq(s, index)) { - halfword index = lmt_tohalfword(L, 3); - if (tex_valid_insert_id(index)) { - insert_index(n) = index; - } + lua_pushinteger(L, insert_index(n)); } else if (lua_key_eq(s, cost)) { lua_pushinteger(L, insert_float_cost(n)); } else if (lua_key_eq(s, depth)) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This should fix the following minimal example: \startluacode local insert = node.new "insert" insert.index = 4 print(insert.index) \stopluacode Thanks, -- Max
participants (1)
-
Max Chernoff