You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And for reference, here's the LaTeX that this produces. Note that the only code that tinytable generates is the \begin{tblr} block, and that the issue stems for a conflict between a vanilla tblr environment and the table and caption commands inserted by Quarto and/or apaquarto.
This was caused by a hacky solution of mine to a problem with longtable (the default environment for quarto tables). The longtable environment does not play nicely with the apa7 package that apaquarto depends on to make .pdf via LaTeX. I am not sure what to do about it, but I have inserted a possible fix. By default, apaquarto removes 20pt of extra space (i.e., \vspace{-20pt}) between captions and tables when in manuscript mode. Using tinytable, longtable is not used, and space should not be subtracted. If I can find a way to take care of the problem automatically, I will do it. In the meantime, you can now add after-caption-space: 0pt as a code-chunk option. For example:
---
title: "Test Document"
author:
- name: Test Author
affiliations:
city: Los Angeles
region: CA
lang: en
format:
apaquarto-pdf:
documentmode: man
keep-tex: true
---
```{r}
#| label: "tbl-descriptive-statistics"
#| echo: false
#| tbl-cap: "Summary Statistics"
#| after-caption-space: 0pt
library(tinytable)
tt(head(iris))
```
If I create a table using
tinytable
that is very wide, the caption is at risk of being struck through:Curiously, removing the
tbl-
prefix from the label resolves the issue:Initially raised at vincentarelbundock/tinytable#327, where the following was also noted:
The text was updated successfully, but these errors were encountered: