The specimen
Two pages, one source file, no manual positioning. Everything on this page was produced by the engine in this repository:
matex-cli collect paper.mtx
matex-cli compile paper.mtx -o paper.static.mtx
matex-cli render paper.static.mtx -o paper.pdf
Inside the repository, cargo mx is the same binary. The download is a
complete project: source, project file, committed stores and
the assets it names. The body is set in Liberation Sans; formulas use
STIX Two Math.
Page one

Page one exercises:
- a title block with a smaller author line;
- numbered headings (
1 Summary,2 Method) driven by{label()}; - display math with two labelled rows, each numbered in parentheses at the right edge;
- an internal equation reference that prints the label from a generated store;
- a citation that links to its bibliography entry;
- a figure with a caption that takes its number from the image's
id; - a running head and a page number from
pageNo().
Page two

Page two exercises:
- a table with
columns={4}, a per-column alignment array, and a cell alignment that would win over it; - horizontal rules above and below the grid, and a rule below the header row;
- a caption outside the grid that names it with
labelled-by; - a bibliography rendered by a component over the
refsstore; - a page break decided by the engine, not by the author.
What the source looks like
The table, as authored:
<col keep gap={2}>
<TableCaption to="tab-time">Update time per sweep, in milliseconds, on one socket.</TableCaption>
<table id="tab-time" columns={4} align={ ["left", "right", "right", "right"] }>
<rule height={0.6} />
<cell header>sites</cell><cell header>time</cell>
<cell header>bandwidth</cell><cell header>speed-up</cell>
<rule height={0.4} />
<cell>10³</cell><cell>0.42</cell><cell>18.1</cell><cell>1.00</cell>
<cell>10⁴</cell><cell>0.68</cell><cell>44.9</cell><cell>1.61</cell>
<cell>10⁵</cell><cell>1.94</cell><cell>78.2</cell><cell>4.62</cell>
<cell>10⁶</cell><cell>6.71</cell><cell>90.4</cell><cell>15.98</cell>
<rule height={0.6} />
</table>
</col>
TableCaption is a component defined in the project. It reads the table's
number from the generated store and prints it into a caption:
export component TableCaption {
prop to: Table;
prop children: markup;
return <caption labelled-by={to}>Table {tables[to].label}. {children}</caption>;
}
Reading the specimen
| Look at | It shows |
|---|---|
| The heading numbers | collect ran, the config numbered h2, and {label()} demanded the number. |
(1) and (2) beside the equations | Each \label{…} on a math row is its own number. |
| “§3” in the prose | An <a to="results"> resolved after drawing; the label came from headings. |
| The table caption | The caption is outside the grid and names its source with labelled-by. |
| The page break after the figure | compile decided it; the static file already contains two <page> elements. |
Caveats
- This is a specimen, not a template for a journal. It uses the engine's default page geometry unless the project file overrides it.
- The math is set with STIX Two Math. The repository's larger class-1 fixture names Times faces generated by its test harness; this specimen uses assets that ship with the site so it can be rebuilt anywhere.
- The engine is pre-1.0. Classes 2 and 3 — long-form work and slides — are designed but not implemented. See status.