diff --git a/man/format_tt.html b/man/format_tt.html index 136cb3f5..6f45e4ec 100644 --- a/man/format_tt.html +++ b/man/format_tt.html @@ -734,8 +734,8 @@

Examples

- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
mpgcyldisphpdrat
21 61601103.9
21 61601103.9
22.8410893 3.85
21.462581103.08
-
- - - -

Markdown and Word

Styling for Markdown and Word tables is more limited than for the other formats. In particular:

@@ -4482,10 +4349,10 @@

Markdown and Word

These limitations are due to the fact that there is no markdown syntax for the other options (ex: colors and background), and that we create Word documents by converting a markdown table to .docx via the Pandoc software.

One workaround is to style the group headers directly in their definition by using markdown syntax:

-
mtcars[1:4, 1:4] |>
-  tt() |>
-  group_tt(i = list("*Hello*" = 1, "__World__" = 3)) |>
-  print("markdown")
+
mtcars[1:4, 1:4] |>
+  tt() |>
+  group_tt(i = list("*Hello*" = 1, "__World__" = 3)) |>
+  print("markdown")
+------+-----+------+-----+
 | mpg  | cyl | disp | hp  |
diff --git a/vignettes/theme.html b/vignettes/theme.html
index 3ef6912a..34fddff7 100644
--- a/vignettes/theme.html
+++ b/vignettes/theme.html
@@ -434,8 +434,8 @@ 

Visual themes

+ + +
+ @@ -916,24 +1047,24 @@

Visual themes

Custom themes

Users can also define their own themes to apply consistent visual tweaks to tables. For example, this defines a themeing function and sets a global option to apply it to all tables consistently:

-
theme_vincent <- function(x, ...) {
-  out <- x |> 
-    style_tt(color = "teal")
-  out@caption <- "Always use the same caption."
-  out@width <- .5
-  return(out)
-}
-
-options(tinytable_tt_theme = theme_vincent)
-
-tt(mtcars[1:2, 1:2])
+
theme_vincent <- function(x, ...) {
+  out <- x |> 
+    style_tt(color = "teal")
+  out@caption <- "Always use the same caption."
+  out@width <- .5
+  return(out)
+}
+
+options(tinytable_tt_theme = theme_vincent)
+
+tt(mtcars[1:2, 1:2])