New answers tagged

4

You have to split the string into lines at the \n and then use tex.print (not tex.sprint) to print them, because this will insert the end-of-line marker that is needed by \obeylines. \documentclass{article} \usepackage{luacode} \begin{luacode*} A = [=[ Here we go. Text. More text. And more text to go. ]=] \end{luacode*} \begin{document} {\obeylines\...


4

In ConTeXt, you can use (in a standalone CLD document): local A = [=[ Here we go. Text. More text. And more text to go. ]=] context.starttext() context.startlines() context(A) context.stoplines() context.stoptext() or in a regular TeX document: \startluacode local A = [=[ Here we go. Text. More text. And more text to go. ]=] \...


Top 50 recent answers are included