[luatex] Strange cost in pagebreaking.
luigi scarso
luigi.scarso at gmail.com
Fri Oct 18 09:18:40 CEST 2013
On Thu, Oct 17, 2013 at 5:15 PM, Paul Isambert <zappathustra at free.fr> wrote:
> For those interested, I’ve brought up the issue on texhax, hoping to find
> an
> explanation for that behavior:
> http://tug.org/pipermail/texhax/2013-October/020605.html
>
With context mkiv :
% EXAMPLE
\starttext
\tracingpages=1 % So we’ll see the page being built.
% New insertion class; the third line means it is only allowed to occupy
% one \baselineskip on the page (so it’ll be split).
\newinsert\myins
\count\myins=1000
\dimen\myins=\baselineskip
% Basic, uninteresting output.
\output{%
\shipout\vbox{%
\ifvoid\myins
\else
\box\myins
\hrule
\fi
\box255}%
}
% An insertion: it will be split after the first line.
\insert\myins\bgroup
ins 1\par
\penalty-11000
ins 2\par
\egroup
line 1
\vfil
\penalty0
line2
\vfill
\penalty-10000
\stoptext \bye
% END OF EXAMPLE
%% goal height=597.51323, max depth=4.79993
% split134 to 14.4816,8.09999 p=-11000
% t=0.0 g=589.41324 b=10000 p=0 c=100000#
% t=12.0 plus 60.0 g=589.41324 b=10000 p=0 c=100000#
% t=12.12 plus 60.0 plus 1.0fil g=589.41324 b=0 p=0 c=-11000#
% t=26.4816 plus 60.0 plus 1.0fil g=589.41324 b=0 p=0 c=-11000#
% t=26.6016 plus 60.0 plus 1.0fil plus 1.0fill g=589.41324 b=0 p=-10000
c=-10000
pages > flushing realpage 1, userpage 1
%% goal height=597.51323, max depth=4.79993
% t=0.0 g=587.39323 b=10000 p=0 c=100000#
% t=12.0 plus 60.0 g=587.39323 b=10000 p=0 c=100000#
% t=12.0 plus 60.0 plus 1.0fill g=587.39323 b=0 p=-1073741824 c=-1073741824#
pages > flushing page
--
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/luatex/attachments/20131018/fa73edfe/attachment.html>
More information about the luatex
mailing list