Quantcast
Channel: Active questions tagged kable - Stack Overflow
Viewing all articles
Browse latest Browse all 105

Quarto sub-tables over multiple pages

$
0
0

I would love to combine multiple sub-tables over two pages (i.e, either to break the table completely and have the subtable on its own page or have a "continued" for one).

This MWE demonstrates the difficulty:

---format: pdfmainfont: Times New Romansansfont: Times New Romanexecute:     echo: false---library(modelsummary)library(kableExtra)models <- list()models[[1]] <- lm(mpg ~ hp, mtcars)models[[2]] <- lm(mpg ~ hp + cyl + disp + qsec + wt, mtcars)#| label: tbl-1#| tbl-cap: "The most important table of the paper"#| tbl-subcap: #|   - "My first caption"#|   - "Second caption"#|   - "Third caption as well"#| layout: [[100], [-10], [33.3], [-10], [33.3], [-10], [33.3]]datasummary_skim(mtcars) |> kable_styling()datasummary_correlation(mtcars)modelsummary(models) |> kable_styling(latex_options=c("repeat_header"))

Any ideas?


Viewing all articles
Browse latest Browse all 105

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>