[luatex] node.new does not accept subtype as string

Henri Menke henrimenke at gmail.com
Thu Apr 19 13:15:38 CEST 2018

Dear list,

I was trying to dissect math lists and insert my own trash there.
According to the LuaTeX manual for node.new one can supply id and
subtype as strings.  That means that this


should be equivalent to


Unfortunately this does not create a noad of subtype rel but subtype
ord.  It seems as if the numbers of the subtypes correspond to their
index in node_subtypes_noad in texnodes.w.

I just wonder, is this a bug or am I doing it wrong?  A non-working
minimal example can be found below.

Cheers, Henri


  local n = node.new("noad","rel")
  assert(n.subtype == 5)

More information about the luatex mailing list