Skip to content

Commit

Permalink
vignette typo
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Nov 4, 2024
1 parent 92b095b commit 5ad64ce
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions vignettes/notebooks.qmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Notebooks (Quarto, Rmarkdown, Bookdown, etc.)
# Notebooks


## Quarto
Expand Down Expand Up @@ -109,12 +109,13 @@ tab |> style_tt(i = 5, background = "orange")
The `bookdown` package uses a special syntax to handle cross-references, and it does not recognize `tinytable` objects as tables automatically. To include cross-references to tables, it is thus necessary to use the `caption` argument of `tinytable::tt()`, and to insert a `bookdown` label in that caption. Here is an example:


````
````{verbatim}
Table \@ref(tab:tinytableref)
```{r tinytableref}
```{r}
library(tinytable)
tt(head(iris), caption = "(#tab:tinytableref) Hello world!") |> style_tt(color = "blue")
tt(head(iris), caption = "(#tab:tinytableref) Hello world!") |>
style_tt(color = "blue")
```
````

Expand Down

0 comments on commit 5ad64ce

Please sign in to comment.