[latex3-commits] [git/LaTeX3-latex3-latex2e] longtable4.14: allocate box for global operations (tools/2914) (383fbe17)

David Carlisle d.p.carlisle at gmail.com
Sat Mar 7 17:01:06 CET 2020


Repository : https://github.com/latex3/latex2e
On branch  : longtable4.14
Link       : https://github.com/latex3/latex2e/commit/383fbe179ac367a6c6db2034bafcb587b4352450

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

commit 383fbe179ac367a6c6db2034bafcb587b4352450
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sat Mar 7 16:01:06 2020 +0000

    allocate box for global operations (tools/2914)


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

383fbe179ac367a6c6db2034bafcb587b4352450
 required/tools/longtable.dtx                           | 16 ++++++++++++++--
 required/tools/testfiles/tlb2914.lvt                   | 18 ++++++++++++++++++
 .../tools/testfiles/tlb2914.tlg                        |  3 +--
 3 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/required/tools/longtable.dtx b/required/tools/longtable.dtx
index e2cd97c2..516a4a4b 100644
--- a/required/tools/longtable.dtx
+++ b/required/tools/longtable.dtx
@@ -924,6 +924,14 @@
 % \end{macro}
 % \end{macro}
 %
+% \begin{macro}{\LT at gbox}
+% \changes{v5.01}{2014/05/14}
+%      {global box added (tools/2914)}
+%    \begin{macrocode}
+\newbox\LT at gbox
+%    \end{macrocode}
+% \end{macro}
+%
 % \begin{macro}{\LT at cols}
 % Counter for number of columns.
 %    \begin{macrocode}
@@ -1550,11 +1558,13 @@
 % \begin{macro}{\LT at echunk}
 % \changes{v4.05}{1996/11/12}
 %      {\cs{unskip} added for pagebreak support}
+% \changes{v5.01}{2014/05/14}
+%      {allocated global box  (tools/2914)}
 % This ends the current chunk, and removes the dummy row.
 %    \begin{macrocode}
 \def\LT at echunk{%
   \crcr\LT at save@row\cr\egroup
-  \global\setbox\@ne\lastbox
+  \global\setbox\LT at gbox\lastbox
 %    \end{macrocode}
 % The following line was added in v4.05.
 % \package{longtable} relies on "\lineskip" glue (which is 0pt) to
@@ -1775,9 +1785,11 @@
 % Loop through the last row, discarding glue, and saving box widths. At
 % V3.04 changed the scratch box to 2, as the new "\kill" requires that
 % "\box0" be preserved.
+% \changes{v5.01}{2014/05/14}
+%      {allocated global box  (tools/2914)}
 %    \begin{macrocode}
   \setbox\tw@\hbox{%
-    \unhbox\@ne
+    \unhbox\LT at gbox
     \let\LT at old@row\LT at save@row
     \global\let\LT at save@row\@empty
     \count@\LT at cols
diff --git a/required/tools/testfiles/tlb2914.lvt b/required/tools/testfiles/tlb2914.lvt
new file mode 100644
index 00000000..be695994
--- /dev/null
+++ b/required/tools/testfiles/tlb2914.lvt
@@ -0,0 +1,18 @@
+\documentclass{article}
+\input{test2e}
+\usepackage{longtable}
+\pagestyle{headings}
+\setcounter{LTchunksize}{2}
+\begin{document}
+
+\START
+\markright{\global\setbox1\null}% LT v4 does not stabilize
+
+\begin{longtable}{l}
+foo\\
+foo\\
+\newpage
+foo\\
+foo\\
+\end{longtable}
+\end{document}
diff --git a/base/testfiles/tlb-negfloat-001.tlg b/required/tools/testfiles/tlb2914.tlg
similarity index 83%
copy from base/testfiles/tlb-negfloat-001.tlg
copy to required/tools/testfiles/tlb2914.tlg
index 21c2e49c..c0b82b27 100644
--- a/base/testfiles/tlb-negfloat-001.tlg
+++ b/required/tools/testfiles/tlb2914.tlg
@@ -1,5 +1,4 @@
 This is a generated file for the LaTeX2e validation system.
 Don't change this file in any respect.
 [1
-Float Output
-]
+] [2] (tlb2914.aux)





More information about the latex3-commits mailing list.