PreTeXt

A Slideshow

Robert A. Beezer
University of Puget Sound

At a Test Conference

August 8, 2026

Abstract

An <abstract> can appear on an early slide, optionally. This is a standard component of a PreTeXt <article> (but not of a <book>).

This is a second paragraph of the abstract for this wonderful talk, just so we have something a bit more substantial.

Explanation

What This Is

This is a PreTeXt slideshow designed mostly for testing new features. As of 2019-11-16 it is only initiated, and not comprehensive. If you improve a feature, please add examples here.

Lists

Ordered Lists, All At Once

  1. Two conversions: print-on-demand, electronic PDF
  2. Extensive use of the tcolorbox package (CSS-like)
  3. Evolving styling/themes (Andrew Rechnitzer, David Farmer)

Ordered Lists, With Features

These are enumerated with capital letters.

  1. Two conversions: print-on-demand, electronic PDF
  2. Extensive use of the tcolorbox package (CSS-like)
  3. Evolving styling/themes (Andrew Rechnitzer, David Farmer)

These are inline

  1. print-on-demand
  2. electronic PDF

And these have pauses.

  1. Two conversions: print-on-demand, electronic PDF
  2. Extensive use of the tcolorbox package (CSS-like)
  3. Evolving styling/themes (Andrew Rechnitzer, David Farmer)

Unordered Lists, All At Once

  • XML syntax is a nested hierarchy (a tree)

    • <foo></foo>
    • <bar/>
    • <baz qux="corge">

  • Does not have to be UGLY!
  • PreTeXt is “author-friendly” (Principle #2)

Unordered Lists, With Pause

  • XML syntax is a nested hierarchy (a tree)

    • <foo></foo>
    • <bar/>
    • <baz qux="corge">

  • Does not have to be UGLY!
  • PreTeXt is “author-friendly” (Principle #2)

Description Lists, All At Once

Central Processing Unit (CPU)

Controls most of the activities of the computer, performs the arithmetic and logical operations, and contains a small amount of very fast memory.

Memory

Provides storage for the instructions for the CPU and the data they manipulate.

Input/Output (I/O)

Communicates with the outside world and with mass storage devices (e.g., disks).

Bus!

A communication pathway with a protocol specifying exactly how the pathway is used. (The punctuation is just for testing.)

Description Lists, With Pauses

Central Processing Unit (CPU)

Controls most of the activities of the computer, performs the arithmetic and logical operations, and contains a small amount of very fast memory.

Memory

Provides storage for the instructions for the CPU and the data they manipulate.

Input/Output (I/O)

Communicates with the outside world and with mass storage devices (e.g., disks).

Bus!

A communication pathway with a protocol specifying exactly how the pathway is used. (The punctuation is just for testing.)

Blocks and code

Blocks: <definition>

Definition 1.

Suppose that Math ExpressionStartFraction d Over d x EndFraction upper F left parenthesis x right parenthesis equals f left parenthesis x right parenthesis Then the indefinite integral of Math Expressionf left parenthesis x right parenthesis is Math Expressionupper F left parenthesis x right parenthesis and is written asMath Expressionintegral f left parenthesis x right parenthesis d x equals upper F left parenthesis x right parenthesis

Blocks: <theorem>

This should also test other “theorem-like”, such as <corollary>.

Proof.

Left to the reader.

Code

Here is an inline bit of code with surrounding text. print("hello world"). Here is a more text. And some more. And yet more. And a full program... with Prism support.

def f(x):
    return x**2

# many intentional blank lines below...
# you may to zoom out, but at some point better to scroll a long listing










print(f(3))

Sage Cell

Ramanujan and Integration

This Sage Cell is testing styling.

We have some mathematics on the page, to look for Javascript interference with MathJax. An identity due to Ramanujan:Math ExpressionStartFraction 1 Over left parenthesis NestedStartRoot phi StartRoot 5 EndRoot NestedEndRoot minus phi right parenthesis e Superscript two fifths pi Baseline EndFraction equals 1 plus ContinuedFraction e Superscript minus 2 pi Baseline Over 1 plus StartFraction e Superscript minus 4 pi Baseline Over 1 plus StartFraction e Superscript minus 6 pi Baseline Over 1 plus StartFraction e Superscript minus 8 pi Baseline Over 1 plus ellipsis

And some more mathematics. An identity due to Ramanujan:Math ExpressionStartFraction 1 Over left parenthesis NestedStartRoot phi StartRoot 5 EndRoot NestedEndRoot minus phi right parenthesis e Superscript two fifths pi Baseline EndFraction equals 1 plus ContinuedFraction e Superscript minus 2 pi Baseline Over 1 plus StartFraction e Superscript minus 4 pi Baseline Over 1 plus StartFraction e Superscript minus 6 pi Baseline Over 1 plus StartFraction e Superscript minus 8 pi Baseline Over 1 plus ellipsis

More Elements

Displayed Mathematics

A single displayed equation, unnumbered on a slide.Math Expressionintegral Subscript 0 Superscript pi Baseline sine left parenthesis x right parenthesis d x equals 2

And a multi-line display, with alignment on the equals signs.Math ExpressionStartLayout 1st Row 1st Column left parenthesis a plus b right parenthesis squared 2nd Column equals left parenthesis a plus b right parenthesis left parenthesis a plus b right parenthesis 2nd Row 1st Column Blank 2nd Column equals a squared plus a b plus b a plus b squared 3rd Row 1st Column Blank 2nd Column equals a squared plus 2 a b plus b squared EndLayout

Numbered Mathematics

A numbered equation on a slide, whose display also uses a macro defined in <docinfo>.Math ExpressionStartLayout 1st Row with Label left parenthesis 1 right parenthesis EndLabel integral Subscript 0 Superscript 1 Baseline x squared d x equals one third EndLayout

A Table

A <tabular> inside a <table>, whose title serves as a caption.

Table 1. Conversions of a slideshow
Formata Engine Output
reveal.js browserb HTML
Beamer PDF
  1. a A table note.
  2. b Another table note, of a differing length.

Console Sessions

A <console> reproduces an interactive command-line session, input distinguished from output.

$ date
Thu Jul  2 10:00:00 PDT 2026
$ echo "PreTeXt"
PreTeXt

Quotations

The problem with quotes on the Internet is that it is hard to verify their authenticity.

―Abraham Lincoln

A <blockquote> can carry an <attribution>, as above.

Cross-References and URLs

A cross-reference to a block on another slide renders as static text, since a PDF slideshow has no knowls: see Definition 1.

One with text from the target’s title: The Fundamental Theorem of Calculus.

An external reference is live in capable outputs: pretextbook.org.

Other features

Pausing

Pausing doesn’t always act how you expect from . The first and third lines are always visible.

But this one needs you to advance the slide.

(Visible from the outset.)

Subslides

Subslides are another way to achieve pausing without lists.

This is a subslide. It always comes after a pause.

  • You can also pause within it.
  • Of course!

But this is still visible from the outset.

Images, from an external source

Images can be included from external sources. As with other PreTeXt formats, you can specify the location of your exteral images in the publication file. The image below also appears in the PreTeXt Sample Article, and originated at www.texample.net.

You will want to ensure your image has an @width if you want it to fit correctly in your slide.

Images, from source

Images can also be generated from source. TikZ works well, and Asymptote. They can be placed in a <sidebyside>, and inside a <figure> (or both).

Common formatting macros for TikZ and Asymptote (which you expect to use repeatedly) can be placed in <docinfo>, using <latex-image-preamble> and <asymptote-preamble>, respectively.

Note that 3D Asymptote images will be rendered in WebGL, and will be interactive within your slide.

Figure 1. Two cone images borrowed from the PreTeXt Sample Article. The one on the left is written in TiZ, and the one on the right is written in Asymptote

Annotated PreFigure diagrams

Annotated PreFigure diagrams also work well by including them in the usual way.

Figure 2. An annotated PreFigure diagram that can be explored with a screenreader

Vertical Alignment

Placement by Document Default

The content of this slide is a single short paragraph, and where it sits within the slide is the entire point.

Placement at the Top

The content of this slide is a single short paragraph, and where it sits within the slide is the entire point.

Placement in the Middle

The content of this slide is a single short paragraph, and where it sits within the slide is the entire point.

Placement at the Bottom

The content of this slide is a single short paragraph, and where it sits within the slide is the entire point.