[luatex] Line breaks
Dirk Laurie
dpl at sun.ac.za
Sat Feb 19 21:54:36 CET 2011
On Sat, Feb 19, 2011 at 06:32:14PM +0200, Wolfgang Schuster wrote:
>
> Am 19.02.2011 um 17:11 schrieb Dirk Laurie:
>
> > I have tried a workaround using a "detokenize" function
> > written in Lua, which is almost effective: there is a mysterious
> > extra 3 in the PDF file.
>
>
> The number disappears when i change your detokenize function to this:
>
> function detokenize(text)
> text = text:gsub("\n\n","\\par ")
> text = text:gsub("\n"," ")
> return text
> end
>
I am amazed. How did you find that?!
The step that does the trick is not the object-oriented representsation,
it is the extra step so that one can have just "return text".
"pdftotext xxx.pdf" still produces something curious, though.
Dirk
More information about the luatex
mailing list