[NTG-context] Writing to .tuc directly from Lua

Jairo A. del Rio jairoadelrio6 at gmail.com
Wed Mar 24 04:28:22 CET 2021

Hi, list. I read about this:


But I want to know how to pass data to the .tuc file directly from Lua. I
think about some complex strings are calculations which are done in each
pass and slow down the whole compilation process. Something like:

local function factorial(n)
if in_tuc then -- whatever in_tuc means
   return factorials[n]
   factorials[n] = ...
   return ...

Is that feasible? Should I use the CLD versions of the TeX macros instead?

Best regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210323/18ab0aaa/attachment.htm>

More information about the ntg-context mailing list