Skip to content

Commit

Permalink
guard for #1495
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarlisle committed Oct 27, 2024
1 parent a47eff0 commit c0fa0a4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions required/tools/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
=======================================================================

2024-10-27 David Carlisle <David.Carlisle@latex-project.org>

* longtable.dtx Guard against increasing \pagegoal past \maxdimen (gh/1495)


2024-10-12 Joseph Wright <Joseph.Wright@latex-project.org>

* array.dtx (section{The insertion of declarations ...}):
Expand Down
11 changes: 8 additions & 3 deletions required/tools/longtable.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
%<driver> \ProvidesFile{longtable.drv}
% \fi
% \ProvidesFile{longtable.dtx}
[2024-07-06 v4.21 Multi-page Table package (DPC)]
[2024-10-27 v4.22 Multi-page Table package (DPC)]
%
% \iffalse
%<*driver>
Expand Down Expand Up @@ -1639,15 +1639,20 @@
\LT@final@warn
\fi
% \end{macrocode}
% Force one more go with the \env{longtable} output routine.
% Force one more go with the \env{longtable} output routine.
% Guard the special start of page value of "\pagegoal".
% \changes{v4.14}{2020/02/07}
% {Rearrange vertical space tests for tools/3512 (floats on same page)}
% \changes{v4.22}{2024/10/27}
% {Keep \cs{pagegoal} below \cs{maxdimen} gh1495}
% \begin{macrocode}
\endgraf\penalty -\LT@end@pen
\ifvoid\LT@foot\else
\global\advance\vsize\ht\LT@foot
\global\advance\@colroom\ht\LT@foot
\dimen@\pagegoal\advance\dimen@\ht\LT@foot\pagegoal\dimen@
\ifdim\pagegoal<\maxdimen
\dimen@\pagegoal\advance\dimen@\ht\LT@foot\pagegoal\dimen@
\fi
\fi
% \end{macrocode}
% Now close the group to return to the standard routine.
Expand Down

0 comments on commit c0fa0a4

Please sign in to comment.