-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug in longtable (2024-04-26 v4.20) after a pagebreak #1495
Comments
Could you please supply a test file, the code shown in your description is empty Setting the value just before This specific arrangement is relatively new (v4.14) from 819fda9 so your test file presumably doesn't show the issue if you use
? |
The group is not necessarily wrong ( |
Excuse me, but the problem occurs in a very complex table. Here, longtable is only used indirectly in an environment that also allows page breaks within table cells and more. But in the end it is only longtable code. Unfortunately I was not able to create a simple example that shows the error. Therefore, I am sending an excerpt from the log file created with \tracingall, from which the problem can be seen. version 4.13 does not show the error. \endlongtable is defined completely differently there. |
I can understand that making a minimal example is hard for this case. If you could send me privately the test file or put it in a private gh repository or whatever you find convenient, this would be really helpful, The file doesn't need to be minimal your full document would be OK. This is a tricky area and making any change without a test file showing the problem is a bit stressful:-). That said, it looks like line 255
should look like line 220
what happens if you add a |
If you subtract \ht\LT@foot no error message appears, but the value of \pagegoal is senseless large. At the first moment the following code seems to make more sense: \ifdim\pagegoal=\maxdimen% But what value does \pagegoal get when the first box is entered in the current page? In addition, according to the TexBook, the value of \pagegoal cannot be changed, if it equals \maxdimen. |
Try the following plain tex test, the value is If you uncomment the so
wouldn't have a lot of effect it would be
|
I guess this is correctly classified as "fixed in dev", @davidcarlisle ? |
Yes as the PR is merged. |
doesn't mean a thing ...sometimes ... could still be something open despite the merge ...anyway, good :-) |
After a pagebreak: \pagegoal=\maxdimen.
\endlongtable -> .... \dimen@\pagegoal\advance\dimen@\ht\LT@foot\pagegoal\dimen@ ....
After a pagebreak you cannot add a positive value to \dimen@. This will lead to the error message: dimension too large.
I don't understand why you need this code, because the next command is an \endgroup and \pagegoal will be resetted.
Minimal example showing the bug
Log file (required) and possibly PDF file
The text was updated successfully, but these errors were encountered: