[luatex] insert a string into node list?
patrick at gundla.ch
Thu Jul 14 15:34:27 CEST 2011
> I have two probably rather unusual questions:
the first one is not that unusual...
> • First, I wanted to ask how I could insert some text into a paragraph. I'd like to do it with the pre_linebreak_filter, and managed to insert single glyph nodes. However, even for a short text that is very annoying. So: is there an alternative to constructing a node list?
No, but it's not annoying at all. See
and for a real life function at
https://github.com/speedata/publisher/blob/develop/src/lua/publisher.lua function "mknodes", but this is currently in German only (its on my todo list to translate this!)
More information about the luatex