-
Notifications
You must be signed in to change notification settings - Fork 361
Open
Labels
bugSomething isn't workingSomething isn't workingcrossreflatexLaTeX engines related libraries and technologiesLaTeX engines related libraries and technologiestablesIssues with Tables including the gt integrationIssues with Tables including the gt integration
Description
So the issue is that \multirow
is used, but somehow, \usepackage{multirow}
is missing when
::: {#tbl-test}
```{=html}
<table>
<thead>
<tr>
<th>species_spanner</th>
<th rowspan="2">island</th>
</tr>
<tr>
<th rowspan="1">species</th>
</tr>
</thead>
</table>
```
:::
but not if the table is not crossreferenced
```{=html}
<table>
<thead>
<tr>
<th>species_spanner</th>
<th rowspan="2">island</th>
</tr>
<tr>
<th rowspan="1">species</th>
</tr>
</thead>
</table>
```
So probably related to multirow
variable not set in one of the scenario
quarto-cli/src/resources/formats/pdf/pandoc/tables.tex
Lines 6 to 8 in 2f24776
$if(multirow)$ | |
\usepackage{multirow} | |
$endif$ |
Originally posted by @cderv in #13084 (reply in thread)
Full reprex
---
format: pdf
keep-tex: true
keep-md: true
---
::: {#tbl-test}
```{=html}
<table>
<thead>
<tr>
<th>species_spanner</th>
<th rowspan="2">island</th>
</tr>
<tr>
<th rowspan="1">species</th>
</tr>
</thead>
</table>
```
:::
Git diff between two tex files
diff --git "a/.\\index-ori.tex" "b/.\\index.tex"
index d3add64..b1718c8 100644
--- "a/.\\index-ori.tex"
+++ "b/.\\index.tex"
@@ -67,7 +67,6 @@
\usepackage{longtable,booktabs,array}
-\usepackage{multirow}
\usepackage{calc} % for calculating minipage widths
% Correct order of tables after \paragraph or \subparagraph
\usepackage{etoolbox}
@@ -167,6 +166,11 @@
\begin{longtable}[]{@{}ll@{}}
+
+\caption{\label{tbl-test}}
+
+\tabularnewline
+
\toprule\noalign{}
species\_spanner & \multirow{2}{=}{island} \\
species \\
@@ -174,6 +178,7 @@ species \\
\endhead
\bottomrule\noalign{}
\endlastfoot
+
\end{longtable}
Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't workingcrossreflatexLaTeX engines related libraries and technologiesLaTeX engines related libraries and technologiestablesIssues with Tables including the gt integrationIssues with Tables including the gt integration