Open gedankenstuecke opened 7 years ago
Thanks, @gedankenstuecke! :) Checking your slides out now. BTW, you can probably use a CDN to point to the reveal directories -- http://www.jsdelivr.com/projects/reveal.js -- so you don't have to host the files in your repo.
Also, since you have R installed on your machine, let me know if you have any luck with embedding python code in the chunks.
Hope you also saw the examples for other output types! The headers in the presentation are all hyperlinks, but here are the individual examples in any case (all I really changed was the YAML frontmatter to get the different outputs):
Any thoughts/feedback you have is very welcome!
Thanks, I'll try to see whether I can get the python embedding works as soon as I have some spare time for that! And I saw the output types, that's so cool!
For the CDN: I knew about that, but I cloned all of the reveal.js repo in any case, as it was my first try to do any slides with it and I wanted to c&p their structure, so that seemed the easiest way to get it all set up π
Not sure what text editer you're using, but if you're comfortable working in RStudio, I cannot recommend it enough as your default reveal editor!
Config goes as YAML, and the formatting with Markdown is nicer by default: https://raw.githubusercontent.com/RaoOfPhysics/contained-revealr/master/index.Rmd (You can do less, with it, though, so there are some trade-offs.)
The other downside is that your final HTML code looks terrible: https://raw.githubusercontent.com/RaoOfPhysics/contained-revealr/master/index.html
Gotta admit that I'm somehow not the biggest fan of RStudio for writing much code in there. Granted, after years of using R only in the command line I only recently did the switch to using RStudio at all, but somehow I prefer Atom (or still vim, depending on what it is) for my code writing. Partially because moving around in the text feels somewhat awkward in RStudio, but maybe I just haven't learned all the good shortcuts yet?
Also: I saw you 16mb index.html
and that's a bit off-putting. :joy:
Enable vim keybindings in RStudio and you'll like it more. Especially once you use shortcuts to navigate between panes and files.
And yes, the final index.html
is a bit⦠bloated. Hope that gets improved as we go forwards. For now, it's a good tool for reproducible presentations. :)
The final index.html
size is due to it being self-contained by default.
If you don't need to distribute it as a single file, just set
output:
revealjs::revealjs_presentation:
self_contained: false
in YAML header of your index.Rmd
@rsuchecki: Indeed! :) I think I chose to have this one self-contained for some reason. I tend to do for slides to which I need offline access.
Just somehow found this by accident on your GH-profile and it looks amazing! π Just by chance I happened to make my first set of slides with reveal for a talk today. Guess that's not an issue, but I'll totally give your
R
-magic a try! π½