Skip to main content

Section 8 Grouping Samples

While building or testing a rendering of PreTeXt, especially in HTML, it can be useful to see all the various elements that potentially create visual blocks in one place. So they are collected here.
We will omit content specific blocks like figures, images, tables, etc. as those elements have significant stress testing of their own elsewhere.
Please add any similar elements that are created or that you discover are missing from this page.

Aside: A title.

Subsection 8.1 Remark-like Blocks

Subsection 8.2 Example-like Blocks

Subsection 8.3 Theorem-like Blocks

Subsection 8.4 Axiom-like Blocks

Subsection 8.5 Definition-like Blocks

Subsection 8.6 Aside-like Blocks

Three <aside>s are below.

Aside: A title.

Biographical Aside: A title.

Biographical Aside: A title.

Historical Aside: A title.

Subsection 8.7 Computation-like Blocks

Subsection 8.8 Project-like Blocks

Subsection 8.9 Blocks Closing with a List or a Display

Some blocks end with a mark, such as the filled square that closes a proof. In print the mark rides the last line of the block’s final paragraph, pushed to the right margin. A paragraph may also hold a list, a code display, or displayed mathematics, and then the mark cannot ride the paragraph’s last line without disturbing the layout of the paragraph and of the list, so it takes a line of its own. Each block here ends with such a paragraph.

Example 8.37. A List, Then More Text.

Here the paragraph continues after the list, so its last line is running text, but the list is still inside the paragraph.
  1. one item
  2. another item
The paragraph resumes here and ends with words, not a list.

Example 8.38. Closing with a Code Display.

A paragraph can also end with a <cd>, a short display of code, as in
print("the last thing")

Example 8.39. Closing with Displayed Mathematics.

And a paragraph can end with displayed mathematics, the case that has always placed the mark on its own line, given here for comparison:
\begin{align*} a^2 + b^2 \amp = c^2 \end{align*}

Definition 8.40. A Statement Closing with a Description List.

A closing list is a list that is the final child of a block’s final paragraph, of any of three kinds; here the paragraph closes a <statement>.
ordered
numbered or lettered
unordered
bulleted
description
this one, with a term for each item

Subsection 8.10 Miscellaneous Blocks

Aside: A title.

A minimal <conclusion>.