Skip to main content

Section 41.5 Reveal.js Slideshow Options

See Section 32.1 for a more general overview of this conversion.

Subsection 41.5.1 Reveal.js Appearance



element can have the following attribute:

  • @theme: the base name of a file that is a reveal.js theme. For example if the desired theme/CSS file is css/theme/solarized.css, then set the value of this attribute to solarized.

Subsection 41.5.2 Reveal.js Controls



element can have the following attributes:

  • @backarrow: for the visibility of a “back” arrow. Values are faded, hidden, or visible. The default is faded.

  • @display: for the overall visibility of controls. Values are yes or no. The default is yes.

  • @layout: for the location of the controls. Values are edges or bottom-right. The default is bottom-right.

  • @tutorial: for animation of suggested navigation arrows. Values are yes or no. The default is yes.

Subsection 41.5.3 Reveal.js Navigation



element can have the following attribute:

  • @mode: for the arrangement of the navigation through slides. Values are default, linear, or grid. The default is default. The value default refers to the default mode of Reveal.js and is synonomous with grid. In other words, the choice of default or grid results in identical behavior.

See Section 32.1 for more explanation of the two different navigation modes.

Subsection 41.5.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 32.1 about the necessity of providing the complete MathJax library Section 32.1 if your document has mathematics and you opt for local resources.



element can have the following attributes:

  • @host: The values local and cdn will 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. This attribute may be given a URL or a local path, though this has not been tested, so should be considered experimental.

  • @minified: These files may be compressed into a “min-ified” form for faster downloading. Typically the CDN files will be available in this form, while the local version will not. PreTeXt will make a sensible choice based on @host, so you should only need to use this attribute to override that choice. Values are yes and no.