[NTG-context] Sending data from lua to context and back to lua

Thomas A. Schmitz thomas.schmitz at uni-bonn.de
Thu Feb 8 09:30:48 CET 2018


On 02/07/2018 06:39 PM, Rudolf Bahr wrote:
> Sometimes the necessity could arise to send data from lua to context
> and answers back to lua. I tried this by using "read" and
> "immediate\write" commands in context. These commands are described
> in chapter 21 and 22 of Donald E. Knuth's "The TeXbook".
> 
> My question is: Do there exist better and more simple solutions?

You can print (typeset) information from inside lua code with the 
"context" function. Have you seen the manual cld-mkiv.pdf? It's in the 
minimals.

Thomas


More information about the ntg-context mailing list