[luatex] Line breaks

Wolfgang Schuster schuster.wolfgang at googlemail.com
Sat Feb 19 16:15:58 CET 2011


Am 19.02.2011 um 12:12 schrieb Dirk Laurie:

> The following are not equivalent on my system (texlive, ubuntu lucid):
> 
> % excerpt from TeX file
> This is a paragraph
> with some lines.
> 
> This is another paragraph,
> separated from the first
> by a blank line.
> % end excerpt
> 
> % another excerpt
> \directlua{ text = [[
> This is a paragraph
> with some lines.
> 
> This is another paragraph,
> separated from the first
> by a blank line. ]]
> tex.print(text)}
> % end excerpt
> 
> The second excerpt sets as a single paragraph.

Use \detokenize, e.g.

\directlua{\detokenize{text = [[
This is a paragraph
with some lines.

This is another paragraph,
separated from the first
by a blank line. ]]}
tex.print(text)}

\bye

Wolfgang



More information about the luatex mailing list