LaTeX writer: ensure that unlabelled tables don't increment counter.

Closes #11141.
This commit is contained in:
John MacFarlane
2025-09-16 18:01:07 +02:00
parent b197126c56
commit e13aa5c015
5 changed files with 17 additions and 1 deletions
+2
View File
@@ -14,6 +14,7 @@
</tbody>
</table>
^D
{\def\LTcaptype{} % do not increment counter
\begin{longtable}[]{@{}
>{\raggedright\arraybackslash}p{(\linewidth - 0\tabcolsep) * \real{1.0000}}@{}}
\toprule\noalign{}
@@ -25,4 +26,5 @@
text2 }\strut
\end{minipage} \\
\end{longtable}
}
```
+2
View File
@@ -7,6 +7,7 @@
| oranges | 4.25 |
^D
\begin{frame}
{\def\LTcaptype{} % do not increment counter
\begin{longtable}[]{@{}lr@{}}
\toprule\noalign{}
fruit & price \\
@@ -16,5 +17,6 @@ apple & 2.05 \\
oranges & 4.25 \\
\bottomrule\noalign{}
\end{longtable}
}
\end{frame}
```
+2
View File
@@ -2,6 +2,7 @@
% pandoc -f html -t latex
<table><tbody><tr></tr></tbody></table>
^D
{\def\LTcaptype{} % do not increment counter
\begin{longtable}[]{@{}l@{}}
\toprule\noalign{}
\endhead
@@ -9,4 +10,5 @@
\endlastfoot
\\
\end{longtable}
}
```