Get rid of additional "caption" for subtables in revealjs presentation inside custom division #5706
-
DescriptionI am trying to add to a revealjs quarto slide a table with subtables. I wanted the tables in a small font to make them appear on the page, so I placed them inside a custom Div, but this makes it ask for an additional caption for each subtable (i.e., ---
title: "Untitled"
format: revealjs
---
## Subtable captions?
```{css}
.small-txt {
font-size: 30px !important;
}
```
:::{.small-txt}
```{r}
#| label: tbl-subtables
#| tbl-cap: "Some table"
#| tbl-subcap:
#| - "Tab1"
#| - "Tab2"
#| layout-ncol: 2
df = data.frame(id=letters[1:3],vals=rnorm(3))
knitr::kable(df)
knitr::kable(df)
```
:::
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I don't think there's a clean solution right now, unfortunately, but a more consistent treatment of subtables, their captions, and their styles is on the 1.4 crossref epic. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Here the recommended/proper syntax: