[luatex] insert a string into node list?
Patrick Gundlach
patrick at gundla.ch
Thu Jul 14 15:34:27 CEST 2011
Hi,
> 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
http://wiki.luatex.org/index.php/TeX_without_TeX
esp. at
http://wiki.luatex.org/index.php/TeX_without_TeX#And_what_about_real_content.3F
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!)
Patrick
More information about the luatex
mailing list