![]() Pandoc -t revealjs -filter pandoc-citeproc INPUTFILE.md -s -o OUTPUTFILE.htmlįinally, trees can be added in as an image file. The metadata, such as title, author and date should go in the following format in the top lines of the file: To create a simple slide deck, write the content in markdown. ![]() Important: you still need to download or clone the reveal.js repository and place the pandoc output in the right place. If you install from a package manager, be sure to check that the version is at least 2.5 or higher. There are detailed instructions on how to install pandoc here Pandoc is a command line utility that is able to convert text files between a number of formats and into a variety of outputs.įor our purposes, it is able to convert a markdown file into a hmtl file with all the necessary reveal.js boilerplate. It is also possible to use pandoc, which is freely available, cross-platform document conversion software. Once you run npm install, the installed node_modules directory gets very big, around 400mb.Īs a one-off, this is fine, but if you want multiple different reveal.js directories, your hard drive will fill up fast. Secondly, this method does require some extra software. There’s testing your slides in advance of your talk at a conference, and then there’s this. If you stick to projecting from your local computer, it’s not a problem, however, if you need to use a different one, then you need to hope that it has Node.js installed, and hope it’s a compatible version. One of the biggest disadvantages to this is that you need all the additional software to see the slides. ![]() Secondly, your code is flexible: you can define whatever separators for the slides you want, so you can make it readable to yourself in whatever way works for you. This is a big positive over the pandoc method described below, which requires you to compile them each time. In fact, once you run npm start, the slides will render as you save the document, meaning you can see them online as you type. The major benefit of using this method is that you can write with markdown and the result is immediately available. and insert the following:Īssuming that npm installs all the relevant packages correctly, then you will be able to view your slides at 1. Within the index.html file, delete everything between the. The forked repository contains a number of demo files that you can alter. Once you have forked the repo from github, open the directory in whatever text editor you like ( Visual Studio Code is a good one for this). Fork the reveal.js repository from Github.Install Node.js ( Note: I strongly recommend doing this with nvm).The first method calls a file written in markdown from the main html document. Method 1: Embedding a markdown file in the main html document ![]() There are in fact two ways in which one can write the source file in Markdown for use with a reveal slide deck, and I will discuss each in turn here.Įach has benefits and drawbacks, which I’ll try to highlight. html input, it works very well with reveal.js, making it very easy to quickly create slide shows. Using markdown, it is very easy to write slide shows, handling most of the general formatting you need for your slides.Īlthough reveal.js is a framework that at its most basic uses. Markdown compares very favourably in this regard to, for isstance, text that is written for LaTeX processing. It has the advantage of being very simple to write, having a lot of support in applications that are based in plain text, as well as the added bonus that the source files are very easy to read. However if you colleagues know how to clone your repository and pip install slidedown then all it takes is one simple command to run your slides locally for themselves.Markdown is increasingly being used in many many ways, such as blogging: this post is written in markdown for instance. On the other hand though, if you were using PowerPoint you wouldn't have those anyway, so it's not such a huge loss. Of course if you have any embedded widgets then those won't be displayed on you're repo's page. images) are also as easily accessible in the very same repository. The beauty of using Markdown is that to share it, you can just create a repo on GitHub, GitLab, or BitBucket and upload your slides as a README.md that you can link to. To see even more, check out some examples and be sure to try out the live examples! You can embed everything from data dashboards to games. The possibilities with IDOM are limitless. You'll display a slide with an interactive button: Enter fullscreen mode Exit fullscreen mode ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |