[luatex] Inserting a "dummy" node

Javier Bezos listas at tex-tipografia.com
Sat Oct 28 09:20:34 CEST 2017


Hans,

> there are user nodes that you can inject
>
>      \def\dummynode#1{\directlua{
>          local n = node.new("whatsit",node.subtype("user_defined"))
>          n.type = 100
>          n.value = #1
>          node.write(n)
>      }}%
>
>      foo\dummynode{123}bar

Thanks, this is what I was looking for, but is not node.write
experimental? Or has it come to stay?

Javier


More information about the luatex mailing list