aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-10-06 23:04:40 +0200
committerJohn MacFarlane <[email protected]>2025-10-06 23:04:40 +0200
commitd8354618c43ceb7ec917608229bdbf673c2469ad (patch)
tree2b2a6e71df323bfbfb9349bd37d5e143e32c1c7f /test
parentbe0509a26b5fd014ff177f06b068cdceb39bf44a (diff)
LaTeX writer/template: small fix for unnumbered tables.
This improves on commit e13aa5c0157744de262ac512cc95a76a4562e37b, which worked only for recent versions of longtable. For older versions, we need to define a dummy counter `none`. Closes #11201. Thanks to @priiduonu for the solution.
Diffstat (limited to 'test')
-rw-r--r--test/command/7272.md2
-rw-r--r--test/command/8638.md2
-rw-r--r--test/command/9350.md2
-rw-r--r--test/tables.latex8
4 files changed, 7 insertions, 7 deletions
diff --git a/test/command/7272.md b/test/command/7272.md
index 0daf2a2d4..a5e519b09 100644
--- a/test/command/7272.md
+++ b/test/command/7272.md
@@ -14,7 +14,7 @@
</tbody>
</table>
^D
-{\def\LTcaptype{} % do not increment counter
+{\def\LTcaptype{none} % do not increment counter
\begin{longtable}[]{@{}
>{\raggedright\arraybackslash}p{(\linewidth - 0\tabcolsep) * \real{1.0000}}@{}}
\toprule\noalign{}
diff --git a/test/command/8638.md b/test/command/8638.md
index e77396aa8..75c824753 100644
--- a/test/command/8638.md
+++ b/test/command/8638.md
@@ -7,7 +7,7 @@
| oranges | 4.25 |
^D
\begin{frame}
-{\def\LTcaptype{} % do not increment counter
+{\def\LTcaptype{none} % do not increment counter
\begin{longtable}[]{@{}lr@{}}
\toprule\noalign{}
fruit & price \\
diff --git a/test/command/9350.md b/test/command/9350.md
index 205f29271..cbb6ba97f 100644
--- a/test/command/9350.md
+++ b/test/command/9350.md
@@ -2,7 +2,7 @@
% pandoc -f html -t latex
<table><tbody><tr></tr></tbody></table>
^D
-{\def\LTcaptype{} % do not increment counter
+{\def\LTcaptype{none} % do not increment counter
\begin{longtable}[]{@{}l@{}}
\toprule\noalign{}
\endhead
diff --git a/test/tables.latex b/test/tables.latex
index e29780883..afe2794e9 100644
--- a/test/tables.latex
+++ b/test/tables.latex
@@ -19,7 +19,7 @@ Right & Left & Center & Default \\
Simple table without caption:
-{\def\LTcaptype{} % do not increment counter
+{\def\LTcaptype{none} % do not increment counter
\begin{longtable}[]{@{}rlcl@{}}
\toprule\noalign{}
Right & Left & Center & Default \\
@@ -92,7 +92,7 @@ Second & row & 5.0 & Here's another one. Note the blank line between rows. \\
Multiline table without caption:
-{\def\LTcaptype{} % do not increment counter
+{\def\LTcaptype{none} % do not increment counter
\begin{longtable}[]{@{}
>{\centering\arraybackslash}p{(\linewidth - 6\tabcolsep) * \real{0.1500}}
>{\raggedright\arraybackslash}p{(\linewidth - 6\tabcolsep) * \real{0.1375}}
@@ -119,7 +119,7 @@ Second & row & 5.0 & Here's another one. Note the blank line between rows. \\
Table without column headers:
-{\def\LTcaptype{} % do not increment counter
+{\def\LTcaptype{none} % do not increment counter
\begin{longtable}[]{@{}rlcr@{}}
\toprule\noalign{}
\endhead
@@ -133,7 +133,7 @@ Table without column headers:
Multiline table without column headers:
-{\def\LTcaptype{} % do not increment counter
+{\def\LTcaptype{none} % do not increment counter
\begin{longtable}[]{@{}
>{\centering\arraybackslash}p{(\linewidth - 6\tabcolsep) * \real{0.1500}}
>{\raggedright\arraybackslash}p{(\linewidth - 6\tabcolsep) * \real{0.1375}}