Skip to content
Discussion options

You must be logged in to vote

Here the recommended/proper syntax:

Quarto document HTML
---
title: "Untitled"
format: revealjs
include-in-header:
  - text: |
      <style>
      .small-txt {
        font-size: 30px !important;
        text-align: center;
      }
      </style>
---

## Subtable captions?

```{r}
#| classes: small-txt
#| 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)
```

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cscheid
Comment options

Answer selected by mcanouil
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
revealjs Issues with the revealjs format html Issues with HTML and related web technology (html/css/scss/js)
3 participants