Reputation: 157
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
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