[latex3-commits] [latex3/latex2e] gh1495: guard for #1495 (c0fa0a436)

github at latex-project.org github at latex-project.org
Sun Oct 27 21:34:11 CET 2024


Repository : https://github.com/latex3/latex2e
On branch  : gh1495
Link       : https://github.com/latex3/latex2e/commit/c0fa0a4365c74c760930599018739f629514b39b

>---------------------------------------------------------------

commit c0fa0a4365c74c760930599018739f629514b39b
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sun Oct 27 20:34:11 2024 +0000

    guard for #1495


>---------------------------------------------------------------

c0fa0a4365c74c760930599018739f629514b39b
 required/tools/changes.txt   |  5 +++++
 required/tools/longtable.dtx | 11 ++++++++---
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/required/tools/changes.txt b/required/tools/changes.txt
index 5dc289803..98d8a02c2 100644
--- a/required/tools/changes.txt
+++ b/required/tools/changes.txt
@@ -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 at latex-project.org>
+
+	* longtable.dtx Guard against increasing \pagegoal past \maxdimen (gh/1495)
+
+
 2024-10-12  Joseph Wright  <Joseph.Wright at latex-project.org>
 
 	* array.dtx (section{The insertion of declarations ...}):
diff --git a/required/tools/longtable.dtx b/required/tools/longtable.dtx
index 439542a18..061d7b561 100644
--- a/required/tools/longtable.dtx
+++ b/required/tools/longtable.dtx
@@ -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>
@@ -1639,15 +1639,20 @@
     \LT at 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 at end@pen
   \ifvoid\LT at foot\else
     \global\advance\vsize\ht\LT at foot
     \global\advance\@colroom\ht\LT at foot
-    \dimen@\pagegoal\advance\dimen@\ht\LT at foot\pagegoal\dimen@
+    \ifdim\pagegoal<\maxdimen
+      \dimen@\pagegoal\advance\dimen@\ht\LT at foot\pagegoal\dimen@
+    \fi
   \fi
 %    \end{macrocode}
 % Now close the group to return to the standard routine.





More information about the latex3-commits mailing list.