1 Comment
Guest *Mingshuo Ji* @ 2018-03-10 15:39:09 originally posted:
It fails to load the presentation after I knitted it in Windows 10. I have upgraded all packages. I do a slide by slide knitting, and in the second slide, if I change ![:image 90% "No GIFs today"] to !["No GIFs today"], then it works. I have been aware that it is somehow difficult to control the size of an image, and I am wondering is that [:image 90%] is something new?
Good question, but hard to answer. In general, you cannot just download the Rmd file and compile it, because I often use external resources such as GIFs, CSS, and JS files in the same Dropbox folder. In your case, ![:image] is a special remark.js macro I defined in https://slides.yihui.name/js/macro.js. For more information about macros, see https://slides.yihui.name/xaringan/#31
Originally posted on 2018-03-10 17:02:06
Guest *Mingshuo Ji* @ 2018-03-10 22:14:59 originally posted:
Cool!
I save that "macro.js" as "'C:Program FilesRStudioresourcespresentationrevealjsjsmacro.js', and put this line on YAML section, it works now. And I am glad to find this new way to set the size of an image.
You did include a lot of information in your sample presentation, but I was not able to capture some points until I try them.
Sign in to join the discussion
Sign in with GitHub