New answers tagged

2

You can use an undocumented extension of texio.write: Instead of passing a string as first parameter, you can also pass a TeX output file handle, e.g. \the\@auxout: \documentclass{article} \begin{document} \section{zzz}\label{z} \makeatletter \directlua{ texio.write(\the\@auxout, [[\string\def\string\hello{zzz}]]) } \latelua{ texio.write(\the\@auxout, [[\...


Top 50 recent answers are included