diff options
| author | John MacFarlane <[email protected]> | 2025-09-16 17:59:42 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-09-16 18:01:07 +0200 |
| commit | e13aa5c0157744de262ac512cc95a76a4562e37b (patch) | |
| tree | 8f47f9d0475af53b94981e60579bc4630dabe308 /test | |
| parent | b197126c56eeb6b6324379b214c0e3b19c9eee78 (diff) | |
LaTeX writer: ensure that unlabelled tables don't increment counter.
Closes #11141.
Diffstat (limited to 'test')
| -rw-r--r-- | test/command/7272.md | 2 | ||||
| -rw-r--r-- | test/command/8638.md | 2 | ||||
| -rw-r--r-- | test/command/9350.md | 2 | ||||
| -rw-r--r-- | test/tables.latex | 8 |
4 files changed, 14 insertions, 0 deletions
diff --git a/test/command/7272.md b/test/command/7272.md index 9a97abf57..0daf2a2d4 100644 --- a/test/command/7272.md +++ b/test/command/7272.md @@ -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} +} ``` diff --git a/test/command/8638.md b/test/command/8638.md index 2da8ded01..e77396aa8 100644 --- a/test/command/8638.md +++ b/test/command/8638.md @@ -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} ``` diff --git a/test/command/9350.md b/test/command/9350.md index d641f8b76..205f29271 100644 --- a/test/command/9350.md +++ b/test/command/9350.md @@ -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} +} ``` diff --git a/test/tables.latex b/test/tables.latex index 6bb80df81..e29780883 100644 --- a/test/tables.latex +++ b/test/tables.latex @@ -19,6 +19,7 @@ Right & Left & Center & Default \\ Simple table without caption: +{\def\LTcaptype{} % do not increment counter \begin{longtable}[]{@{}rlcl@{}} \toprule\noalign{} Right & Left & Center & Default \\ @@ -30,6 +31,7 @@ Right & Left & Center & Default \\ 123 & 123 & 123 & 123 \\ 1 & 1 & 1 & 1 \\ \end{longtable} +} Simple table indented two spaces: @@ -90,6 +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 \begin{longtable}[]{@{} >{\centering\arraybackslash}p{(\linewidth - 6\tabcolsep) * \real{0.1500}} >{\raggedright\arraybackslash}p{(\linewidth - 6\tabcolsep) * \real{0.1375}} @@ -112,9 +115,11 @@ Default aligned First & row & 12.0 & Example of a row that spans multiple lines. \\ Second & row & 5.0 & Here's another one. Note the blank line between rows. \\ \end{longtable} +} Table without column headers: +{\def\LTcaptype{} % do not increment counter \begin{longtable}[]{@{}rlcr@{}} \toprule\noalign{} \endhead @@ -124,9 +129,11 @@ Table without column headers: 123 & 123 & 123 & 123 \\ 1 & 1 & 1 & 1 \\ \end{longtable} +} Multiline table without column headers: +{\def\LTcaptype{} % do not increment counter \begin{longtable}[]{@{} >{\centering\arraybackslash}p{(\linewidth - 6\tabcolsep) * \real{0.1500}} >{\raggedright\arraybackslash}p{(\linewidth - 6\tabcolsep) * \real{0.1375}} @@ -139,3 +146,4 @@ Multiline table without column headers: First & row & 12.0 & Example of a row that spans multiple lines. \\ Second & row & 5.0 & Here's another one. Note the blank line between rows. \\ \end{longtable} +} |
