On 1/10/2018 6:30 PM, Wolfgang Schuster wrote:
dr. Hans van der Meer mailto:havdmeer@ziggo.nl 10. Januar 2018 um 13:45 With \setbuffer[ABUFFER] .. \endbuffer I can program a macro to put something in this buffer. But is it possible to add something at the end of this buffer at a later moment?
You can use the “buffers.append” and “buffers.prepend” functions to add text to a buffer.
\starttext
\startbuffer[a] First \stopbuffer
\startbuffer[b] Second \stopbuffer
\startbuffer[c] Third \stopbuffer
\startluacode
buffers.append("b",buffers.getcontent("c"))
buffers.prepend("b",buffers.getcontent("a"))
\stopluacode
\getbuffer[b]
\stoptext
or just getbuffer[a,b,c] ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------