1

I'm preparing a presentation in .Rmd (R markdown) file using slidify. I have some vector graphics saved as PDF files that I would like to render on particular slides.

I've tried methods that I used in raw .Rmd (markdown syntax) as well as those from bookdown. However, none of them works.

As I can see in generated HTML, PDF file location is directly provided in img src and as I understand HTML files do not directly support PDF files.

However, I'm not sure what to do (what is the best approach):

  • convert PDF (to .svg) and use it in .Rmd?
  • try to write some raw HTML in my .Rmd fo;e using suggestion from Recommended way to embed PDF in HTML? that will allow me to render PDF,
  • use different command to embed PDF in presentation (something specific to slidify)?
matandked
  • 1,527
  • 4
  • 26
  • 51

0 Answers0