😎 Give your xaringan slides some style
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

41 líneas
1.5KB

  1. <!-- Set link to theme-settings, template-variables, theme functions -->
  2. First, add the `xaringan-themer.css` file to the YAML header of your xaringan slides.
  3. ```yaml
  4. output:
  5. xaringan::moon_reader:
  6. css: xaringan-themer.css
  7. ```
  8. Then, in a hidden chunk just after the knitr setup chunk, load **xaringanthemer** and try one of the [theme functions][theme-functions].
  9. ````markdown
  10. ```{r xaringan-themer, include = FALSE}`r ""`
  11. library(xaringanthemer)
  12. style_mono_light(
  13. base_color = "#1c5253",
  14. header_font_google = google_font("Josefin Sans"),
  15. text_font_google = google_font("Montserrat", "300", "300i"),
  16. code_font_google = google_font("Droid Mono")
  17. )
  18. ```
  19. ````
  20. <img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_mono_light_1c5253.png" alt="Example title and normal slides using a green xaringanthemer theme" />
  21. ### Tab Completion
  22. **xaringanthemer** is <kbd>Tab</kbd> friendly -- [use autocomplete to explore][theme-settings] the [template variables][template-variables] that you can adjust in each of the themes!
  23. <img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example-rstudio-completion.gif" alt="Demonstration of argument auto-completion with RStudio" />
  24. ### R Markdown Template in RStudio
  25. You can also skip the above and just create a *Ninja Themed Presentation* from the New R Markdown Document menu in RStudio.
  26. <center>
  27. <img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/rmarkdown-template-screenshot.png" alt="The 'New R Markdown Document' menu in RStudio" />
  28. </center>