The engine's declared scope
This page is generated from the project corpus and rewritten on every docs build. Edit the source in corpus/, not here.
The engine (typeset.md) is a subset of LaTeX, and its failure contract (D38) is that anything outside the subset says so: every construct below that is Out is a diagnostic, never silence. The subset was declared in three parts, built 2026-08-26 to 2026-08-29: the foundation, then figures, tables and bibliography, then mathematics (typeset-math.md).
The foundation
In:
- Preamble:
\documentclass{article}only.\usepackageagainst an allowlist that starts withgeometry(margins only);amsmathjoined with the math.\title\author\date\maketitle,abstract. - Text: paragraphs,
\emph\textbf\textit\texttt\underline,\footnote, quotes, en and em dashes, ties (~),\\,\newpage, escaped specials (\%\&\_\#\$). - Structure:
\section\subsection\subsubsection\paragraphwith numbering and*variants,\tableofcontents. - Lists:
itemizeenumeratedescription, nested. - Cross-references:
\label\ref\pageref, through a second pass. - Verbatim: the
verbatimenvironment and\verb. - User macros:
\newcommand/\renewcommandwith N arguments and one optional argument. This is the 90% of macro use that is not programming, and it is the boundary.
Out, permanently: arbitrary .sty/.cls, TeX programming (\def,
\catcode, \expandafter, \csname, registers), TikZ/pgf, \marginpar,
multi-column, a custom \output, book/report/beamer, index and glossary
packages, SyncTeX.
Figures, tables and the bibliography
In:
- Floats:
figureandtablewith[htbp]placement,\caption(numbered, per-class counters),\label/\refinto the reference pass,\listoffigures/\listoftables. Placement prefers here, top, bottom, own page, with a deferral queue; a float that can never be placed is a diagnostic, not dropped at the end. \includegraphics: PNG and JPEG only, withwidth=,height=,scale=and\textwidth-relative widths, from the in-memory file map. Any other format is a diagnostic naming it.- Tables:
tabularwithl c randp{width}columns,|rules,\hline,\cline,\multicolumn, and&/\\cells; column widths measured in a first pass, then set. - Bibliography: a
.bibparser (article,book,inproceedings,misc,@string, cross-references),\cite/\citep-style keys,\bibliography/\bibliographystyle, and one built-in numeric style. An unknown key is a diagnostic and prints[?].
Out: longtable, tabularx, booktabs, multirow, subfigure /
subcaption, text wrapped round floats, \rotatebox, EPS/PDF/SVG graphics,
BibLaTeX/biber syntax, author-year and custom .bst styles. These report
unsupported (real LaTeX we declined), not undefined-command.
Mathematics
In:
- Inline math
$…$and\(…\), on the text baseline. - Display math
\[…\],equation,equation*,displaymath: centred, spaced, numbered into the existing counter and\label/\ref. - Aligned environments:
align,align*,gather,split, with&alignment points and per-line numbering. - Structures: fractions (
\frac,\dfrac,\tfrac), radicals, sub- and superscripts, sums, products and integrals with limits in both styles,\binom, over- and underbraces, accents. - Delimiters that grow:
\left/\right,\bigand friends. - Matrices:
matrix,pmatrix,bmatrix,vmatrix,arraywith column specs. - Symbols: Greek, relations, operators, arrows,
\mathbb/\mathcal/\mathrm/\mathbf/\mathit,\textinside math. - The
amsmathsubset these imply, and nothing beyond it.
Out: \newtheorem and theorem environments, cases beyond what array
gives, commutative diagrams, mathtools / physics / siunitx,
\DeclareMathOperator, custom math alphabets, TikZ in math. Line breaking
inside math is out too: a display equation wider than the text is a diagnostic,
so the author breaks it.
The gate (D41, the owner's call). MathJax can draw some Out items
(cases, \DeclareMathOperator), and they are refused anyway: a subset whose
edge is not precisely knowable cannot keep the promise that an unimplemented
construct says so. The cost accepted is a maintained allowlist
(packages/typeset/src/macro/builtins.ts) and refusing things that work. The
gate reads MathJax's MathML (tex2mml), not the TeX source, because macros
expand.