tinytable icon indicating copy to clipboard operation
tinytable copied to clipboard

`multipage` + `landscape`

Open vincentarelbundock opened this issue 10 months ago • 3 comments

Hard to do. Here's a workaround for LaTeX

```{=latex}
\begin{landscape}
```
```{r manualspots, results='asis'}
library(tinytable)
scm <- read.csv(here::here("txt/fig/spotchecks_manual.csv"), check.names = FALSE)

# allow breaking space
for (i in seq_along(scm)) {
  scm[[i]] <- gsub("=", " = ", scm[[i]])
  scm[[i]] <- gsub("_", " ", scm[[i]])
}
scm |>
  tt(caption = "Summary of manual checks", width = c(1, 1, 1, 1, 3))  |>
  format_tt(escape = TRUE) |>
  theme_tt("multipage") |>
  theme_tt("striped")
```
```{=latex}
\end{landscape}
```

vincentarelbundock avatar Feb 10 '25 00:02 vincentarelbundock

Maybe the landscape extension for Quarto can help implement this for docx files.

raffaem avatar Apr 27 '25 20:04 raffaem

Interesting. Have you tried to see if it works out of the box for us? We night not need to change anything here.

vincentarelbundock avatar Apr 27 '25 20:04 vincentarelbundock

Not sure how to do that. My knowledge of tinytable is very basic and I just use save_tt(table, "output.docx")

raffaem avatar Apr 27 '25 20:04 raffaem