Section 32.1 Reveal.js
Run this to produce a Reveal.js slideshow:
xsltproc --xinclude -o path/to/output/slides.html path/to/pretext/xsl/pretext-revealjs.xsl path/to/source/slides.xml
Reveal.js supports themes that affect the overall appearance of a slideshow. So in PreTeXt you can specify the name of theme in a publisher file. See Subsection 41.5.1 for details.
You may assume that your slideshow will be presented with the internet available, perhaps in a classroom, and will be updated for use the next semester. Or maybe you are presenting at a conference where you do not want to trust an unfamiliar internet connection, and you will later host an archival version of your presentation on your website and you want it to “just work” ten years from now. So you can configure your slideshow to obtain resources from a Content Delivery Network (CDN) online, or you may arrange to copy the necessary files from reveal.js and store them locally (your hard disk, your website). See Subsection 41.5.4 for the necessary details.
Reveal.js will render LaTeX syntax with MathJax, entirely similar to how MathJax is used in the PreTeXt conversion to HTML. This is accomplished with the Reveal.js
math plugin, which is loaded automatically as part of your output. When you specify that resources come from a CDN, then this plugin will also get MathJax from a CDN. When you specify that resources are available locally (your hard disk, your website), then this plugin simply expects that you have installed a complete copy of MathJax. So a local version may only be practical if you are careful not to include any mathematics in your document.
We are not enthusiastic about PDF as an electronic format. But it might be a good choice as an archival format. So exporting your slideshow to a PDF could be a good choice for a long-term archive. On 2020-08-01 Andrew Rechnitzer suggests the
reveal plugin works well once you settle on a resolution (the
-s option). The
generic plugin, along with the default key action (
ArrowRight) can capture the behavior of slides built using the
@pause attribute. A local web server can also be employed to serve up the slides, see Section 5.12.
Reveal.js has various options of the visibility of arrows a presenter can click on in order to move through a presentation. The visibility of these can be controlled via options in the publisher file. See Subsection 41.5.2.
Reveal.js imagines slides laid out on a 2-D grid. Each PreTeXt section gives rise to a title slide and these are organized left-to-right. Below each of these slides, arranged vertically, are the slides comprising the section. We use the attribute value
grid to refer to this arrangement.
If public speaking makes you nervous and going left-to-right and top-to-bottom nearly simultaneously means you get lost and even less confident (we've seen it), we have an option for you. The attribute value
linear arranges all your slides from left-to-right. Aah, that's better. See Subsection 41.5.3 for details on setting the navigation mode for your slideshow.