Skip to main content

The PreTeXt Guide

Section 29.6 Styling

The PreTeXt conversion to HTML creates standard HTML elements, with styles controlled by CSS via class names (and not so much via the element names). As evidence of this, building HTML without the accompanying Javascript and CSS renders in a readable fashion, albeit quite plain (as one would expect).
This HTML is styled with CSS to create the output that a reader sees. There are multiple “themes” that a publisher can choose from to render the pages in different styles. Below are samples of available themes. See Subsection 44.4.11 for the syntax for specifying a theme and options like the color palette to use.

Themes.

There are multiple themes that define different appearances for HTML output. Currently available themes include:
Screenshot of the default-modern theme
Figure 29.6.1. default-modern An updated version of the traditional PreTeXt theme.
Screenshot of the tacoma theme
Figure 29.6.2. tacoma A theme with minimal decorations and colors. A minimalistic presentation of the contents.
Screenshot of the denver theme
Figure 29.6.3. denver A theme that uses bolder structural elements and colors.
Screenshot of the greeley theme
Figure 29.6.4. greeley A theme designed for short documents like academic papers.
Screenshot of the salem theme
Figure 29.6.5. salem A theme that is optimized for displaying wide interactive elements (such as Active Code and Parsons).

Development.

Please join us on the pretext-dev discussion group if you want to create alternate themes.