rstudio / rmarkdown-book

R Markdown: The Definitive Guide (published by Chapman & Hall/CRC in July 2018)
https://bookdown.org/yihui/rmarkdown
Other
783 stars 522 forks source link

4.1.5 Customizing logos added to each slide | R Markdown ioslides #31

Closed jananiravi closed 5 years ago

jananiravi commented 6 years ago

Hi, I'd like to adjust use the css customizations suggested in the section 4.1.5 on 'Adding a logo' to increase the logo size in all my slides, but I'm not sure which file I should edit. I only see the defaults.css file (under ...files>ioslides...>theme>css) that's created after I knit my current .Rmd presentation. Where can I add these customizations so that the bottom left logos in each slide appear a bit larger? And how can I make sure that this works robustly? Thanks!

dr-harper commented 6 years ago

As stated in Section 4.1.3.5, you will need to add your own CSS to ioslides using the css option. You can then include any custom CSS options in this file.

---
output:
  ioslides_presentation:
    css: styles.css
---
jananiravi commented 6 years ago

OK, makes sense. I will create a styles.css in the same folder that houses my .Rmd and then add these snippets there. Thanks, @mikey-harper