Where should the custom CSS for R Markdown ioslides be stored?

Viewed 1802

I would like to define custom CSS for the slides produced by R Markdown. In particular, ioslides.

Where should this be stored and how should I reference the path as part of the R Markdown document?

Many thanks.

1 Answers

Store the CSS file under the same directory as your Rmd file, and use a relative path. There is an example in the documentation:

---
output:
  ioslides_presentation:
    css: styles.css
---

BTW, I don't quite recommend you to use ioslides if you care a lot about customizing the styles. See rstudio/rmarkdown#730.

Related