Open Rmano opened 1 week ago
Maybe this bug could be fixed together with #184. In #184, tabularray
fails to pagebreak after first body row. And here tabularray
pagebreaks wrongly after first body row.
PS: At least some \usepackage
lines could be removed from the example.
PS: At least some
\usepackage
lines could be removed from the example.
Yes, you're right. I'll try to minimize the MWE as soon as I have some time (RL kicking in...)
PS: At least some
\usepackage
lines could be removed from the example.Yes, you're right. I'll try to minimize the MWE as soon as I have some time (RL kicking in...)
Done. It seems that both geometry
and my awful messing with break penalties are needed to trigger the bug...
Adding \SetTblrTracing{-step,+page}
to the example I get from the log file:
> \pagegoal=674.33032pt. > \pagetotal=311.27136pt.
> \pagegoal=674.33032pt. > \pagetotal=323.27136pt.
> \pagegoal=674.33032pt. > \pagetotal=323.27136pt.
> \pagegoal=674.33032pt. > \pagetotal=341.27136pt.
> \pagegoal=674.33032pt. > \pagetotal=341.27136pt.
> \l__tblr_curr_i_int=2.
> \l__tblr_curr_i_int=3.
> \l__tblr_curr_i_int=4.
> \pagegoal=674.33032pt. > \pagetotal=545.27133pt.
> \pagegoal=674.33032pt. > \pagetotal=552.21577pt.
> \pagegoal=674.33032pt. > \pagetotal=552.21577pt.
> \pagegoal=674.33032pt. > \pagetotal=570.21577pt.
> \pagegoal=674.33032pt. > \pagetotal=570.21577pt.
> \l__tblr_curr_i_int=2.
> \pagegoal=674.33032pt. > \pagetotal=639.41576pt.
> \pagegoal=674.33032pt. > \pagetotal=651.41576pt.
> \pagegoal=674.33032pt. > \pagetotal=651.41576pt.
> \pagegoal=674.33032pt. > \pagetotal=671.3602pt.
> \pagegoal=674.33032pt. > \pagetotal=671.3602pt.
> \l__tblr_curr_i_int=2.
> \pagegoal=674.33032pt. > \pagetotal=661.3602pt.
> \l__tblr_curr_i_int=3.
[1]
[2]
> \pagegoal=674.33032pt. > \pagetotal=0.0pt.
> \l__tblr_curr_i_int=4.
> \l__tblr_curr_i_int=5.
[3]
It is strange there are no tracing messeges between [1] and [2].
With version 2023A I get two-page output:
> \pagegoal=674.33032pt. > \pagetotal=311.27136pt.
> \pagegoal=674.33032pt. > \pagetotal=323.27136pt.
> \pagegoal=674.33032pt. > \pagetotal=323.27136pt.
> \pagegoal=674.33032pt. > \pagetotal=341.27136pt.
> \pagegoal=674.33032pt. > \pagetotal=341.27136pt.
> \l__tblr_curr_i_int=2.
> \l__tblr_curr_i_int=3.
> \l__tblr_curr_i_int=4.
> \pagegoal=674.33032pt. > \pagetotal=545.27133pt.
> \pagegoal=674.33032pt. > \pagetotal=552.21577pt.
> \pagegoal=674.33032pt. > \pagetotal=552.21577pt.
> \pagegoal=674.33032pt. > \pagetotal=570.21577pt.
> \pagegoal=674.33032pt. > \pagetotal=570.21577pt.
> \l__tblr_curr_i_int=2.
> \pagegoal=674.33032pt. > \pagetotal=639.41576pt.
> \pagegoal=674.33032pt. > \pagetotal=651.41576pt.
> \pagegoal=674.33032pt. > \pagetotal=651.41576pt.
> \pagegoal=674.33032pt. > \pagetotal=671.3602pt.
> \pagegoal=674.33032pt. > \pagetotal=671.3602pt.
> \l__tblr_curr_i_int=2.
[1]
> \pagegoal=674.33032pt. > \pagetotal=0.0pt.
> \l__tblr_curr_i_int=3.
> \l__tblr_curr_i_int=4.
> \l__tblr_curr_i_int=5.
[2]
It might be related to https://github.com/lvjr/tabularray/pull/366.
First of all, sorry for the contrived example --- I could not reduce it anymore. The problem is that the third "long"
tblr
in this document is split even if all the page is available.I can fix it quite easily by adding
*
to the lines (I do not know if there is an option to "undo" thelong
in the template), but I thought it could be useful to pin it down --- maybe I did something wrong.The result is this one: