gadenbuie / xaringanthemer

😎 Give your xaringan slides some style
https://pkg.garrickadenbuie.com/xaringanthemer/
Other
445 stars 28 forks source link

write_extra_css() should be able to overwrite the created file #17

Closed pat-s closed 4 years ago

pat-s commented 5 years ago

If not by default, at least as an option :) Just saw that my created CSS file is Inf long :open_mouth:

gadenbuie commented 5 years ago

Yeah that makes sense. It was intended to be called in conjunction with the style functions that would overwrite the main CSS file and then write_extra_css() would append to that. I can easily make append a parameter.

I'm curious, though. Do you mind sharing the slides where you used write_css_extra()? I'd love to see how you're using it.

pat-s commented 4 years ago

The source Rmd is here.

It was intended to be called in conjunction with the style functions that would overwrite the main CSS file and then write_extra_css() would append to that.

As you can see I prefer writing to an external file. I call the whole chunk including the xaringanthemer functions by hand after I made changes to it. The "main" CSS file is overwritten each time while the external extra.css is appended.

(PS: Thanks for this awesome pkg. After taking a detailed look into your drake slides I moved my xaringan game to a whole new level.)