[latex3-commits] [git/LaTeX3-latex3-latex2e] lt4.15: silence warnings on internal vsplit (4ff763f6)

David Carlisle d.p.carlisle at gmail.com
Sun Apr 18 10:28:20 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : lt4.15
Link       : https://github.com/latex3/latex2e/commit/4ff763f6d309c61dfd46cba2d66944cad5395dd4

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

commit 4ff763f6d309c61dfd46cba2d66944cad5395dd4
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sun Apr 18 09:28:20 2021 +0100

    silence warnings on internal vsplit


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

4ff763f6d309c61dfd46cba2d66944cad5395dd4
 required/tools/changes.txt   |  5 +++++
 required/tools/longtable.dtx | 15 +++++++++------
 2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/required/tools/changes.txt b/required/tools/changes.txt
index edbfbf5a..10468b59 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.
 =======================================================================
 
+2021-04-18  David Carlisle  <David.Carlisle at latex-project.org>
+
+	* longtable.dtx: silence \vsplit with \vbadness in addition to \vfuzz
+	  https://tex.stackexchange.com/a/71121
+
 2021-03-28  David Carlisle  <David.Carlisle at latex-project.org>
 
 	* longtable.dtx: \reset at font in captions gh/133
diff --git a/required/tools/longtable.dtx b/required/tools/longtable.dtx
index a4c87872..83f20887 100644
--- a/required/tools/longtable.dtx
+++ b/required/tools/longtable.dtx
@@ -37,7 +37,7 @@
 %<driver> \ProvidesFile{longtable.drv}
 % \fi
 %         \ProvidesFile{longtable.dtx}
-          [2021-03-28 v4.15 Multi-page Table package (DPC)]
+          [2021-04-18 v4.15 Multi-page Table package (DPC)]
 %
 % \iffalse
 %<*driver>
@@ -1282,6 +1282,8 @@
 %    \end{macrocode}
 % \changes{v3.16}{1995/11/09}
 %      {Measure the first line of the table}
+% \changes{v4.15}{2021/04/88}
+%      {silence \cs{vbadness}}
 % At this point I used to add "\ht\@arstrutbox" and "\dp\@arstrutbox"
 % as a measure of a row size. However this can fail spectacularly
 % for "p" columns which might be much larger. Previous versions could
@@ -1289,12 +1291,13 @@
 % a head \emph{then} a `first head'! So now measure the first line of
 % the table accurately by "\vsplit"ting it out of the first chunk.
 %    \begin{macrocode}
-  \dimen at ii\vfuzz
+  \edef\LT at reset@vfuzz{\vfuzz\the\vfuzz\vbadness\the\vbadness\relax}%
   \vfuzz\maxdimen
-    \setbox\tw@\copy\z@
-    \setbox\tw@\vsplit\tw@ to \ht\@arstrutbox
-    \setbox\tw@\vbox{\unvbox\tw@}%
-  \vfuzz\dimen at ii
+  \vbadness\@M
+  \setbox\tw@\copy\z@
+  \setbox\tw@\vsplit\tw@ to \ht\@arstrutbox
+  \setbox\tw@\vbox{\unvbox\tw@}%
+  \LT at reset@vfuzz
   \advance\dimen@ \ht
         \ifdim\ht\@arstrutbox>\ht\tw@\@arstrutbox\else\tw@\fi
   \advance\dimen@\dp





More information about the latex3-commits mailing list.