[luatex] tex.linebreak produces different baselineskip glues

Jeremie Knuesel knuesel at gmail.com
Wed May 31 15:44:00 CEST 2017


Hi,

It seems that using tex.linebreak in the linebreak_filter callback produces
a different result (compared to the default with no callback): it changes
the spacing between paragraphs.

Consider the following:

\documentclass{article}
\usepackage{luatexbase}
\usepackage{lipsum}
\setlength\parskip{0pt}
\begin{document}
% \directlua{ luatexbase.add_to_callback("linebreak_filter", tex.linebreak,
"texlinebreak") }
\lipsum[1-5]
\end{document}

By setting parskip to 0pt this typesets the text on a grid. But uncomment
the \directlua call and you get additional space between paragraphs.

Is this known behavior? How can I build the paragraphs with tex.linebreak
and still get the expected vertical spacing?

Thanks,

Jeremie Knuesel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/luatex/attachments/20170531/b9446695/attachment.html>


More information about the luatex mailing list