9/24/2023 0 Comments Rmarkdown presentation too wideIt would work, though, if we put the file on a server. However, if you run the above command line, you will notice that on “Slide 2”, the maths doesn’t work, despite using the ‘–mathjax’ option. This is why on the previous command line I used the option -mathjax. I have tried many options with pandoc, and found that only MathJax works properly and without a major hassle. The maths is written in a LaTeX-like notation, and there are many ways to turn it into an elegant mathematical equation on the final presentation. Pandoc -s -S -t revealjs -mathjax -o test.html test.md Note that this is not the final command line in the following points I will discuss the problems which will influence the final version. Use pandoc to create the reveal.js presentation. Pressing “Esc” in a presentation shows the slide overview:Īnyway, download reveal.js and unpack it in the same directory as test.md. And it has the “2D” layout, meaning that sections (level one headers) are arranged horizontally, while slides within one section are arranged vertically. It was easy to work with and adapt to my needs, it had elegant default themes, it has a low footprint and shortcuts. With that, knitr’s job is finished, we will not need it anymore. I use knitr only to create a markdown file. In the following, I assume it has been saved under “test.Rmd”. There were several bumps and problems, and I will give now a step – by – step guide. I made my first presentation with knitr / Rmarkdown for the tmod package.Īfter trying various options in knitr, I decided on an approach in which the Rmarkdown document is oblivious of the presentation system and the job of turning it into a presentation is taken up by pandoc. Way too many, and none of them is perfect. There are many ways to turn a markdown or Rmarkdown document into a presentation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |