Oq01
Oq01

Reputation: 157

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

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.

Upvotes: 3

Views: 2008

Answers (1)

Yihui Xie
Yihui Xie

Reputation: 30104

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.

Upvotes: 2

Related Questions