😎 Give your xaringan slides some style
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

37 lines
1.5KB

  1. ---
  2. title: "Template Variables"
  3. author: "Garrick Aden-Buie"
  4. date: "`r Sys.Date()`"
  5. output: rmarkdown::html_vignette
  6. vignette: >
  7. %\VignetteIndexEntry{Template Variables}
  8. %\VignetteEngine{knitr::rmarkdown}
  9. %\VignetteEncoding{UTF-8}
  10. ---
  11. ```{r setup, include = FALSE}
  12. knitr::opts_chunk$set(
  13. collapse = TRUE,
  14. comment = "#>"
  15. )
  16. ```
  17. 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.
  18. For example, `background_color` by default sets the `background-color` CSS property of the `.remark-slide-content` class to `#FFF`.
  19. Use this table to find the template variable you would like to modify.
  20. You can also use this table to find the CSS class or element associated with a particular template item.
  21. 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.
  22. For example, to use `mono_accent()` with a different slide background color, you can call `mono_accent(background_color = "#abc123")`.
  23. ```{r table, results = "asis", echo=FALSE}
  24. source("../R/theme_settings.R")
  25. template_variables$variable <- glue::glue_data(template_variables, "`{variable}`")
  26. template_variables$default <- gsub("[{}]", "", template_variables$default)
  27. template_variables$default <- glue::glue_data(template_variables, "`{default}`")
  28. knitr::kable(template_variables)
  29. ```