[luatex] Problem tex.print()-ing a verbatim block

luigi scarso luigi.scarso at gmail.com
Sat Jun 6 13:09:26 CEST 2020


On Sat, Jun 6, 2020 at 2:37 AM Eduardo Ochs <eduardoochs at gmail.com> wrote:

> Hello list,
>
> if I run something like this from Lua
>
>   tex.print([[
>   \begin{verbatim}
>   foo
>     poo
>       boo
>   \end{verbatim}
>   ]])
>
> the newlines in the verbatim are converted to spaces... how do I fix
> this?
>

this is more a lualatex question, context is ok .
I suspect you need to use the right catcode table in tex.print .


-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20200606/01a3adde/attachment.html>


More information about the luatex mailing list.