😎 Give your xaringan slides some style
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

36 lines
1.5KB

  1. ---
  2. title: "Template Variables"
  3. output:
  4. rmarkdown::html_vignette: default
  5. vignette: >
  6. %\VignetteIndexEntry{Template Variables}
  7. %\VignetteEncoding{UTF-8}
  8. %\VignetteEngine{knitr::rmarkdown}
  9. ---
  10. ```{r setup, include = FALSE}
  11. knitr::opts_chunk$set(
  12. collapse = TRUE,
  13. comment = "#>"
  14. )
  15. ```
  16. The following table shows the template variables, their default values in the standard `xaringan` theme, the primary element to which the property is applied, and a brief description of the template variable.
  17. For example, `background_color` by default sets the `background-color` CSS property of the `.remark-slide-content` class to `#FFF`.
  18. Use this table to find the template variable you would like to modify.
  19. You can also use this table to find the CSS class or element associated with a particular template item.
  20. Note that themes, like `mono_accent()`, have additional parameters, but with any theme function you can override the theme by directly setting the arguments below when calling the theme function.
  21. For example, to use `mono_accent()` with a different slide background color, you can call `mono_accent(background_color = "#abc123")`.
  22. ```{r table, results = "asis", echo=FALSE}
  23. source("../R/theme_settings.R")
  24. template_variables$variable <- glue::glue_data(template_variables, "`{variable}`")
  25. template_variables$default <- gsub("[{}]", "", template_variables$default)
  26. template_variables$default <- glue::glue_data(template_variables, "`{default}`")
  27. knitr::kable(template_variables)
  28. ```