😎 Give your xaringan slides some style
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

42 lines
1.6KB

  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. lib_dir: libs
  7. css: xaringan-themer.css
  8. ```
  9. Then, in a hidden chunk just after the knitr setup chunk, load **xaringanthemer** and try one of the [theme functions][theme-functions].
  10. ````markdown
  11. ```{r xaringan-themer, include = FALSE}`r ""`
  12. library(xaringanthemer)
  13. style_mono_light(
  14. base_color = "#1c5253",
  15. header_font_google = google_font("Josefin Sans"),
  16. text_font_google = google_font("Montserrat", "300", "300i"),
  17. code_font_google = google_font("Droid Mono")
  18. )
  19. ```
  20. ````
  21. <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" />
  22. ### Tab Completion
  23. **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!
  24. <img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example-rstudio-completion.gif" alt="Demonstration of argument auto-completion with RStudio" />
  25. ### R Markdown Template in RStudio
  26. You can also skip the above and just create a *Ninja Themed Presentation* from the New R Markdown Document menu in RStudio.
  27. <center>
  28. <img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/rmarkdown-template-screenshot.png" alt="The 'New R Markdown Document' menu in RStudio" />
  29. </center>