[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: ensure \ext at table defined for issue #637 (31c3be6a)

David Carlisle d.p.carlisle at gmail.com
Fri Aug 13 23:29:34 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/31c3be6a2ef3ac368096f405e30d3ca9a6d3e6df

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

commit 31c3be6a2ef3ac368096f405e30d3ca9a6d3e6df
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Fri Aug 13 22:29:34 2021 +0100

    ensure \ext at table defined for issue #637


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

31c3be6a2ef3ac368096f405e30d3ca9a6d3e6df
 required/graphics/changes.txt                                |  4 ++++
 required/tools/longtable.dtx                                 |  9 ++++++++-
 required/tools/testfiles/github-0637.lvt                     | 12 ++++++++++++
 .../tools/testfiles/github-0637.tlg                          |  0
 4 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/required/graphics/changes.txt b/required/graphics/changes.txt
index 932eb279..1bd6b4ff 100644
--- a/required/graphics/changes.txt
+++ b/required/graphics/changes.txt
@@ -4,6 +4,10 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 =======================================================================
 
+2021-08-13  David Carlisle  <David.Carlisle at latex-project.org>
+
+	* longtable.dtx: ensure \ext at table is defined (gh/g37)
+
 2021-08-11  David Carlisle  <David.Carlisle at latex-project.org>
 
 	* trig.dtx: correct csname for 180 \@clxxx not \@clxx
diff --git a/required/tools/longtable.dtx b/required/tools/longtable.dtx
index 457891da..47a64892 100644
--- a/required/tools/longtable.dtx
+++ b/required/tools/longtable.dtx
@@ -37,7 +37,7 @@
 %<driver> \ProvidesFile{longtable.drv}
 % \fi
 %         \ProvidesFile{longtable.dtx}
-          [2021-05-07 v4.16 Multi-page Table package (DPC)]
+          [2021-08-13 v4.17 Multi-page Table package (DPC)]
 %
 % \iffalse
 %<*driver>
@@ -973,6 +973,9 @@
 % \begin{macro}{\c at table}
 % \begin{macro}{\fnum at table}
 % \begin{macro}{\tablename}
+% \begin{macro}{\ext at tab;e}
+% \changes{v4.16}{2021/05/07}
+%      {ensure \cs{ext at table} is defined gh/637}
 % If the "table" counter is not defined (eg in "letter" style), define
 % it. (Added in V3.06.)
 %    \begin{macrocode}
@@ -983,10 +986,14 @@
 \ifx\tablename\undefined
   \def\tablename{Table}
 \fi
+\ifx\ext at table\undefined
+ \def\ext at table{lot}
+\fi
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
 % \end{macro}
+% \end{macro}
 %
 % \begin{macro}{\LT at out}
 % In a normal style, "longtable" uses the ".aux" file to record the
diff --git a/required/tools/testfiles/github-0637.lvt b/required/tools/testfiles/github-0637.lvt
new file mode 100644
index 00000000..f2405621
--- /dev/null
+++ b/required/tools/testfiles/github-0637.lvt
@@ -0,0 +1,12 @@
+\documentclass{letter}
+\usepackage{longtable}
+\input{test2e}
+\begin{document}
+\START
+% should not error even though letter class has not set up tables
+\begin{longtable}{c}
+\caption{Table}
+\label{table}\\
+foo
+\end{longtable}
+\END
\ No newline at end of file
diff --git a/base/testfiles/github-0060.luatex.tlg b/required/tools/testfiles/github-0637.tlg
similarity index 100%
copy from base/testfiles/github-0060.luatex.tlg
copy to required/tools/testfiles/github-0637.tlg





More information about the latex3-commits mailing list.