From 5ad64ceb4661e7bae83ef4241f6906ca9cc3a5dd Mon Sep 17 00:00:00 2001 From: Vincent Arel-Bundock Date: Mon, 4 Nov 2024 17:15:09 -0500 Subject: [PATCH] vignette typo --- vignettes/notebooks.qmd | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vignettes/notebooks.qmd b/vignettes/notebooks.qmd index 0e890b50..0ef9901d 100644 --- a/vignettes/notebooks.qmd +++ b/vignettes/notebooks.qmd @@ -1,4 +1,4 @@ -# Notebooks (Quarto, Rmarkdown, Bookdown, etc.) +# Notebooks ## Quarto @@ -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") ``` ````