Section 45.6 Reveal.js Slideshow Options
See Section 34.1 for a more general overview of this conversion.
Subsection 45.6.1 Reveal.js Appearance
The
/publication/revealjs/appearance
element can have the following attributes:
-
@theme: the base name of a file that is a reveal.js theme. (See the reveal.js documentation for available themes.) For example if the desired theme/CSS file iscss/theme/solarized.css, then set the value of this attribute tosolarized. -
@custom-css: a string separated list of custom css files to load. These may be local files or remote URLs. For local files, it is recommended to place them in the external files directory so that they are automatically copied from your source folder to the output directory. (Refer to Section 5.6 for more information on external files.)
Subsection 45.6.2 Reveal.js Controls
The
/publication/revealjs/controls
element can have the following attributes:
-
@backarrow: for the visibility of a “back” arrow. Values arefaded,hidden, orvisible. The default isfaded. -
@display: for the overall visibility of controls. Values areyesorno. The default isyes. -
@layout: for the location of the controls. Values areedgesorbottom-right. The default isbottom-right. -
@tutorial: for animation of suggested navigation arrows. Values areyesorno. The default isyes.
Subsection 45.6.4 Reveal.js Resources
You may wish to host the reveal.js CSS and javascript files locally or obtain them online. Be sure to read in Section 34.1 about the necessity of providing the complete MathJax library Section 34.1 if your document has mathematics and you opt for local resources.
The
/publication/revealjs/resources
element can have the following attributes:
-
@host: The valueslocalandcdnwill retrieve various Javascript and CSS files (such as the theme) relative to the slideshow HTML file or from an online Content Delivery Network (respectively). PreTeXt will maintain a link to a current, updated, CDN version and this will change without notice. The valueembeddedinstead folds those files (and the fonts a theme uses) into the HTML file at build time, producing a single-file slideshow that presents with no network connection; it impliesmath="embedded"(below) when the@mathattribute is unspecified, while an explicitmath="online"is a contradiction, draws an error, and the slideshow is built fully online. See Section 34.1. This attribute may also be given a URL or a local path, though this has not been tested, so should be considered experimental. -
@math: The valueonline(the default) loads MathJax in the browser, which typesets the mathematics every time the slideshow is opened. The valueembeddedinstead replaces each piece of mathematics with an SVG image manufactured once, at build time, along with a speech string a screen reader can voice. The slideshow then performs no typesetting at all, and MathJax is never loaded. See Section 34.1 for discussion of the trade-offs, and a limitation of building with embedded mathematics.
