CommunityData:Reveal.js: Difference between revisions

From CommunityData
(First version of reveal.js explainer)
 
No edit summary
 
Line 6: Line 6:
<source lang='bash'>
<source lang='bash'>
mkdir ~/tex/
mkdir ~/tex/
cd ~/tex/
git clone git@code.communitydata.cc:cdsc_tex
git clone git@code.communitydata.cc:cdsc_tex
</source>
</source>

Latest revision as of 22:03, 10 June 2019

reveal.js is an HTML-based framework for creating presentations. Using web-based slides lets you do things like embed videos or put clickable elements in your slides - anything that you could do in a webpage.


The easiest way to get started is to use the cdsc_tex set of tools. These are also used to create new LaTeX documents. You can put these in a new directory (this will put them in ~/tex/).

mkdir ~/tex/
cd ~/tex/
git clone git@code.communitydata.cc:cdsc_tex

This code directory includes a number of bash scripts which create different types of documents (knitr, plain LaTeX, revealjs, etc.). To use these scripts, you should add them to your $PATH. One way to do this is to make a symlink to ~/bin for each script:

ln -s ~/tex/cdsc_tex/new* ~/bin/

Then, from any directory you can run

new_revealjs_presentation PresentationName

and it will create a new directory called PresentationName with a file called PresentationName.Rmd which is an R Markdown file that produces reveal.js slides, with examples of a few things that you might want to do.