Skip to content

Commit

Permalink
minor example
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Sep 14, 2024
1 parent 20435fb commit ab8d9ea
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sandbox/typst.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ keep-typ: true

```{r}
pkgload::load_all()
theme_typst_figure <- function(x, ...) {
fn <- function(table) {
if (isTRUE(table@output == "typst")) {
table@table_string <- paste0("#figure([\n", table@table_string, "\n])")
}
return(table)
}
x <- style_tt(x, finalize = fn)
return(x)
}
options(theme_tt_tinytable = theme_typst_figure)
```

```{r}
Expand Down

0 comments on commit ab8d9ea

Please sign in to comment.