A pure-Go (no cgo) TeX engine aimed at functional parity with a TeX
distribution, not a subset. It is a faithful re-implementation of TeX — the
category-code tokenizer, the equivalents table (eqtb) with grouping/scoping,
macro definition with delimited parameters and the full expansion
machinery (the mouth and gullet); a scaled-point box/glue/penalty stomach
with Knuth–Plass line breaking and a cost-based page builder; math via
go-tex/math; OpenType fonts; and PDF + SVG output — and on top of it, it
loads and runs the genuine LaTeX classes: \documentclass{article},
{report} and {book} execute the real, embedded .cls files, in native builds
and in the browser (js/wasm), with no TeXLive.
It is developed the way parity is actually reachable — reimplement the engine
faithfully, gated by objective oracles — then run the real LaTeX classes and
packages on it (they are TeX macros). Two gates hold the line: the conformance
ratchet (TestConformance, TeX snippets checked byte-for-byte against real-TeX
output) and a fidelity check that compares whole-document prose against a real
LaTeX engine (tectonic).
- Category-code tokenizer — full catcode table, comments, control words/symbols.
- Macros —
\def(undelimited, delimited, and grouped parameters, with backtracking on partial delimiter matches),\edef/\gdef/\xdef,\let(to macros, primitives, undefined, and character tokens),\global. - Expansion —
\expandafter,\csname/\endcsname,\noexpand,\string,\the,\number,\romannumeral,\meaning,\uppercase/\lowercase. - Conditionals —
\if,\ifnum,\ifx,\ifcat,\ifodd,\ifcase,\iftrue/\iffalse, with\else/\or/\fiand nesting. - Registers & arithmetic —
\count,\advance,\multiply,\chardef,\catcode, read via\the/\count; TeX's own number syntaxes in any numeric slot ("FF,'17,`A) and the glyph metrics\fontcharht/\fontchardp/\fontcharwd/\fontcharic, which are internal dimensions wherever one is read.\showtheprints what\thewould give, on a diagnostic stream of its own (Diagnostics.Shows, andgotexwrites it unconditionally): TeX sends\messageto the log and the terminal but\showtheto the terminal, and folding the two together makes a document's own diagnostics indistinguishable from its output. The shape isprint_nl("> "); token_show(…)(tex.web23721-23725) followed byerror, and the trailing full stop iserror's own first act (print_char("."), 1883-1884) — not part of the value. - Grouping —
{…},\begingroup/\endgroup, save/restore of meanings, registers, and catcodes;\globalescapes the current group. - Registers —
\count,\dimen,\skipand\box, 32768 of each kind, which is eTeX's register file and not TeX82's 256. Packages written against eTeX allocate accordingly: the realtikzandcalctogether leave 86 of 256\countregisters free, and a package-heavy paper spends those before its own\newtheoremcounters are declared. The pools are grown on demand, so a document that stays inside TeX82's range costs what it always did. An index no pool can hold — negative, or at least 32768 — is refused rather than allocated, and counted inDiagnostics.RegistersOutOfRange.
Faithfulness is checked on subtleties only real TeX gets right (a control word absorbing its following space; significant spaces in conditional branches).
out, _ := engine.New().Run(`\def\twice#1{#1#1}\message{\twice{\twice A}}`)
// out == "AAAA"A real third-party paper pulls in classes, packages, fonts, figures and .bib
files that a from-scratch engine does not carry. Strict mode aborts on the first
such gap (as TeX does). Lenient mode (gotex -lenient, or Options{Lenient: true}) turns those gaps into best-effort no-ops so an editor preview shows the
typesettable content instead of one hard error:
-
an undefined command is skipped, along with its likely
[opt]{arg}block; ⛔ "likely" is the catch, and it is why a command that takes an argument is worth defining even when its effect is not implemented:\marginparwas undefined, and in lenient mode its argument reached the page as ordinary text —AVANTUN\marginpar{NOTEUN}APRESUNsetAVANTUNNOTEUNAPRESUN, and the optional form set the first argument with its brackets, wheretectonicputsAVANTUNAPRESUNand the note out in the margin. It is now defined and reads both arguments (ltfloat.dtx951-967, 973-985), so the body text matches the reference exactly; placing the note in the margin needs\vadjust(#665) and is still missing; -
an unloadable figure becomes a framed placeholder of the requested size (this includes a raster figure above 40 megapixels, see below);
-
a math macro go-tex/math doesn't know drops that one equation;
-
a
\setlengthon an unmodelled length, and a missing\input/\bibliography/\fontfile, are ignored.
Raster figures above 40 megapixels. \includegraphics decodes a PNG, JPEG,
GIF, WEBP, TIFF, BMP, ICNS or ICO figure through go-gfx/gfx, which since v0.37.0
refuses an image of more than codec.DefaultMaxPixels (40 million pixels, width
times height) from its header, before allocating anything: the size is read from
the file, and a compressed format describes a huge image in a few bytes. Such a
figure fails with an error wrapping codec.ErrTooLarge: in strict mode the
compile stops (includegraphics <name>: …), in lenient mode it becomes the
framed placeholder above and is recorded as a dropped figure. There is no option
to raise the ceiling; downscale the figure.
PDF figures. \includegraphics of a .pdf (with page=N for a later page) is
embedded in the PDF output as a Form XObject through go-pdfkit/pdfkit, as pdfTeX
and XeTeX do, so it stays vector and its text stays selectable; a page past the end
is an error in strict mode and an empty box in lenient mode.
Every skipped construct is tallied ((*Engine).SkippedCommands) so a caller can
report what was dropped. Diagnostics also records the paths the document read from
outside its own directory — an absolute path, or one that walked out with ../,
excluding the search directories the host itself configured. Reading a named file is
what \input is for and it is not an error, but a service compiling a document it did
not write is the one who can judge it, and nothing else in this package will tell it.
Two register tallies sit beside those, and they are different facts.
Diagnostics.RegistersExhausted counts allocations this engine refused because
that pool is full — the name a \newcount could not satisfy stays undefined,
whatever used it reads 0 or vanishes, and the run completes normally, where TeX
stops with "No room for a new \count". Diagnostics.RegistersOutOfRange counts
a document naming a register number that cannot exist, which TeX answers with
"Bad register code"; a read gives the zero value and a write is dropped. A
register inside the pool that nothing has written is neither: it legitimately
holds 0, 0pt, zero glue or a void box.
Diagnostics.KerningIsAFloor says a face was used whose kerning this engine
cannot fully read, so the compile's kern figures are a floor and not a
measurement. The kern is asked for a pair of glyphs, and GPOS lookup types 7 and
8 position pairs contextually — matched against the glyphs around a position,
which a pair cannot carry — so those adjustments come back as 0, the same 0 a
font gives for a pair it deliberately leaves alone. Measured over the 81 fonts
go-opentype/fonts bundles, 8 carry such lookups (seven complex-script Noto
faces and notosans.ttf, a general Latin sans), so this is neither rare nor
exotic. It does not claim any kern was wrong; it says the figure is a floor, which
is the distinction a fidelity measurement needs and did not have
(#716).
On a 1000-source arXiv sweep (measure trunc, re-measured 2026-10-19), strict
mode compiles almost none end-to-end — each hits a package command in the preamble —
while lenient mode flags 64 sources, and the engine's two alarms do not say the
same thing:
| sources | |
|---|---|
| runaway guard tripped, alone | 2 |
| groups still open at end of document, alone | 58 |
| both | 4 |
| either | 64 |
| rendered as a SINGLE page | 1 |
An aborted loop has lost content; groups left open may be only a leak — seven papers
measured the same day carry that alarm and render 14 to 42 pages, and one leaves 20
groups open over 17 pages. The number that is not a suspicion is the last row, and it
is one source in a thousand (2607.05497, aas.cls, tracked in #625). The same
sweep counted twelve when the series began, and #517 records each one's diagnosis.
It is a preview aid, not a fidelity claim — the roadmap below is how the gaps close for real.
\documentclass and \usepackage (and \RequirePackage, \LoadClass,
\LoadClassWithOptions) do more than emulate: they resolve and load the real
.cls/.sty — from the document's own directory (an arXiv paper's bundled
class/package), a TEXINPUTS/GOTEX_TEXMF search path, or an embedded base set —
making @ a letter and running the file's own \newcommand/\def/… on the
engine. The LaTeX2e option mechanism runs too: \DeclareOption,
\DeclareOption*, \ProcessOptions, \ExecuteOptions, \CurrentOption,
\PassOptionsToPackage/\PassOptionsToClass, plus \IfFileExists/
\InputIfFileExists. A file loads tolerantly — a command the engine lacks is
skipped, so a real class contributes what it can — and a runaway-expansion
guard bounds macro expansion so a pathological or partially-supported file can
never hang (it stops with partial output in lenient mode, an error in strict).
⛔ That guard has two ceilings, and which one stops a document says something
different about it. The no-progress ceiling measures TeX-style forward
progress — expansion steps taken while the mouth reads no new input — and a
self-referential macro crosses it in under half a second. The absolute one is
a coarse backstop on total steps, and its old comment, "a large real document
stays well under it", is false for a figure-heavy paper: one tikzDevice picture
(R's output — 489 KB, thousands of coordinates, each through pgfmath) spends
tens of millions of steps inside a single \path, with the input advancing the
whole way. Measured on arXiv 2405.11065 with the real pgf sources: it takes
106 315 622 expansion steps — against a 60M ceiling, so 7 pages of 18 and
a report of a possible loop; with Options.StepLimit: engine.StepLimitHeavy
(600M), which gotex now passes beside NoProgressLimitHeavy, all 18 and no
trip. Its longest run reading no new input is 3 117 166, six times under
the no-progress ceiling, which it never approached — the document advanced the
whole way and simply needed more budget. Raising the no-progress ceiling twentyfold changes
nothing on that paper — it stops at the same byte with the same seven pages,
which is the wrong turn #360 recorded for seven weeks.
So the report carries its evidence instead of a verdict: both counters, the
ceiling reached, and the two readings of it, because the engine cannot tell them
apart — a legitimate \path and a loop both spend millions of steps reading no
input. What does tell them apart is raising the ceilings: a loop stops at the
same place however high they go. GOTEX_TRACE=1 prints the margin to each
ceiling on every compile, including one that succeeds, since a margin is only
useful before it is crossed. Raising the absolute ceiling does not slow a loop
down: the no-progress ceiling still catches one first, which
TestALoopIsStillCaughtByTheNoProgressCeilingAtShippedLimits holds.
Distribution-heavy packages the engine emulates natively or better as stubs
(geometry, tikz, hyperref, graphicx, encodings, …) are not loaded from
disk.
The standard base classes run for real. \documentclass{article},
{report} and {book} load and execute the genuine, embedded LaTeX classes
(article.cls/report.cls/book.cls + their size option files, LPPL, verbatim)
— not an emulation. Everything they need is in place: the LaTeX2e kernel helpers,
a class-kernel substrate (constants, registers, \if@ flags, NFSS font-switch
aliases), \newcommand*/\DeclareOldFontCommand, the rubber-glue and
<factor><internal-dimen> length scanner, numbered \@startsection with
\@tocentry, \secdef via \@dblarg (so \chapter works), \@float
figure/table captions, \@starttoc bridged to the engine's two-pass contents
table, \addcontentsline bridged to it as well — \chapter and \part are the
two entries no \@startsection records, which is why a book's contents list
used to have no chapters in it — and — the keystone — stable source lines (loading a 644-line class no
longer shifts the line numbers the editor maps glyphs back to). A real
\documentclass{article} document typesets a numbered title, a
\tableofcontents shaped by the loaded class's own \l@… macros — the
indent and number-box widths are read out of its \@dottedtocline calls, so
article's leaderless bold \l@section and book's dotted one at the very
same level come out differently, and the leader tiles \@dotsep rather than
\dotfill's narrower box —
numbered sections, and numbered figure/table captions, and it
reproduces the reference engine's prose on the fidelity gate. Because the class
files are go:embeded and the resolver needs no filesystem, the real classes
also run in the js/wasm build — genuine LaTeX class rendering in the browser,
with no TeXLive and no server. amsart now joins them: \documentclass{amsart}
loads the real embedded amsart.cls and typesets its own title, sections and
theorem heads (its \maketitle drove real token-register support — \toks/
\newtoks — into the engine, and its \newtheorem…[section] machinery, which
used to loop, runs through the class-kernel substrate's counter hooks).
GOTEX_AMSART=0 forces the old emulation back, for comparing the two paths.
The full, honest matrix — every supported class, package, primitive, output format and image type, with its status, plus every remaining gap — lives at go-tex.github.io/docs. In short:
-
Classes (real embedded):
article,report,book,amsart.beamerruns its real class when resolvable, and its headline and footline (like anyfancyhdr/class running head or foot) now carry their text — section names, author, title, frame numbers — typeset in the body's local state at shipout (v0.306.0); still open: per-page counters in heads (see #973), errors in a head swallowed in strict mode (see #974), navigation symbols and mini-frame dots not drawn (see #975), head text about 1.2× wider than tectonic (see #976).revtex4-x,acmart,IEEEtran,elsarticleand theaastex6xfamily fall back to content-preserving emulation. Any other resolvable.clsis loaded and run as real TeX. -
Packages with native handling:
amsmath(equation/align/gather/multline/…),amssymb,amsthm,thmtools(\declaretheorem, including its comma list of names and both of its counter keys),graphicx,xcolor,hyperref,geometry,fancyhdr(and the class page styles beside it: a\thispagestyle{plain}page — every chapter opening in a book or report, and the first page of its contents list — keeps its folio centred at the foot even though the class declared a running head for the whole document; and the running head itself now carries its own page's mark, because\marktravels with page breaking and\topmark/\firstmark/\botmarkare maintained per page astex.web§1012 maintains them, so a head that tracks sections names the section the reader is in rather than the document's last one),setspace,enumitem,multicols,booktabs/multirow/tabularx,subcaption,algorithm/algorithmic,listings(caption=,label=andcaptionpos=, so a listing is numbered, captioned and referable; andbasicstyle=through\lstset,\lstdefinestyleandstyle=, so code set at\footnotesizeor\scriptsizetakes the room it takes in the reference),minted,siunitx,cleveref(\cref/\Crefwith cleveref's own default naming, itscapitaliseandnoabbrevoptions,\crefname/\Crefnameand\crefformat),caption's\captionsetup{name=},longtable,url, paragraph columns (p{}, withm/btreated asp),numprint,makeidx,verbatim, BibTeX. Any other resolvable.styruns as real TeX macros through the full LaTeX2e option mechanism. -
Opt-in and working: PDF-figure rasterization.
GOTEX_PDFRENDER=1wiresgo-tex/pdfrenderinto the CLI and a vector.pdffigure typesets as a real raster instead of a framed placeholder — measured on one corpus paper, 21 figures reported as empty boxes become 0. It is off by default so the engine core, and thejs/wasmbuild with it, carries no PDF renderer. -
Partly:
biblatex. Biber's data.bblis parsed and its entries are typeset — on the two corpus papers that ship one, 30 of 30 and 15 of 17 titles are present and no raw field data reaches the page. Its citation commands are not there:\textcite,\parencite,\autocite,\footciteand\smartciteare undefined and print the bare key, and the citation and bibliography styles are not modelled. -
The front matter stays on the sheet. A vertical block that should fill a title page — an author/affiliation list, an abstract — used to be emitted as one horizontal list that was never line-broken, so everything past the right margin was drawn off the paper: measured at up to x=6619pt on a 612pt sheet, with author names, affiliations and e-mails outside it. No other channel can see that — the page count cannot (the clearest witness is 15 pages against 15), the ink count cannot (every glyph is emitted),
-report-skippedcannot (nothing is skipped) and the text layer carries the words. Seven distinct causes, each with its own witness: a macro standing for severaltabularrows (article.clssets the author block as\begin{tabular}[t]{c}\@author\end{tabular}andauthblkbuilds\@authorwith\\), a bare\endXclosing what\Xopened (sagej.clswrites\def\endabstract{\endminipage\endlrbox}),calcexpressions in a length argument ({\textwidth-57.625mm}),\cite's optional note,\unvboxinside a paragraph — a vbox holds finished lines, and handing them to the line breaker glues them end to end and re-breaks the lot as one paragraph (acmart writes\noindent\unvbox\mktitle@bx, so its title and every author block came out as a single line) —\maketitlenever running the class's own\@maketitle, which left\@authorin a\centerlineno line breaker touches, and a package whose key-list commands were undefined and left their keys behind (mdframed,caption).Over the 154-paper corpus 21 papers still draw text past their own page edge in their first two pages, the widest line at 1281pt, against a floor of 0 on the reference PDFs themselves. ⚠ That floor is 0 and not 2 because the instrument changed: it lives in the measure harness now (
measure offpage) and filters text the PDF reader surfaces but that was never typeset — a/Titlestring's octal escapes, hyperref's PostScript specials, pdfmark attributes,burl's PostScript definitions. Unfiltered the reference itself reports 12, one of them at x=5135. The earlier series — 49 at v0.260.0, 23 at v0.261.0 — was taken with a filter that left 2 there, so it is not directly comparable to these. ⚠ Not closed: 21 remain, and the top of that list is a different population again (see #629). -
Float placement takes its seven parameters from the class, not from article's:
\topnumber,\bottomnumberand\totalnumberare counters the class kernel declares so a\setcounterof them takes (amsart's\setcounter{topnumber}{4}used to be a no-op on an undeclared counter), and\topfraction,\bottomfraction,\textfractionand\floatpagefractionare read from their macros. Measured against the reference on forty figures in amsart prose: four floats to a page on both sides, 11 pages each, where article's hardcoded values gave three and 14. -
Primitives and registers (v0.290.0–v0.291.0).
\haligncopies its preamble unexpanded and runs its entries live, astex.web§782-791 does:\def\a{OLD}\halign{#\cr \def\a{NEW}\a\cr}typesetsNEW(it used to printOLD, #602), a\gdefin a cell reaches the next one, IEEEtran's{\ifnum0=}\fi … \ifnum0={\fi}\crbrace trick ends an entry from inside a group, and\halign\bgroupopens an alignment.tabularand the maths alignments keep their own collect-then-build shape.\leaders,\cleadersand\xleadersare real primitives with a box or rule tile in the aligned, centred and expanded modes of §626-628, in both the SVG and the PDF painter (vertical leaders keep the glue's space and paint nothing).\c@pageis a real count register,\count0:\the\c@pageand\advance\c@pagework,\stepcounter{page}works, and a header or footer can ask\ifodd\c@page.\DeclareUnicodeCharactermakes the character active with the text as its meaning, and the catcode table is sparse past 255 so a character beyond the old 256 entries can be made active. -
Page geometry (v0.290.0–v0.291.0).
\restoregeometryreturns to the layout\begin{document}found and, like\newgeometry, starts with a\clearpage(mdpi.clsstayed on its title-page geometry for the whole body before). Thetwocolumnandonecolumnkeys set\@twocolumn, sosn-jnl'siicoloption takes the two-column\maketitlebranch. With none of margin, body, margin fixed in a direction,geometrytakes its default body, 0.7 of the paper, and splits the margins 1:1 horizontally and 2:3 vertically, and\oddsidemargin,\evensidemarginand\topmarginfollow.a4is emulated (the text block per base size, the two-side even margin andwidemargins) because its licence only allows distribution with the NTG classes;a4wideis bundled and reaches it through\RequirePackage{a4}. ⚠ The page grid is still one layout per run, so pages before a\restoregeometrytake the restored height and margins; the measure after it, and the pages that follow, are exact. -
Packages (v0.290.0–v0.291.0).
eso-pic's\AddToShipoutPicturefamily draws at the paper's lower-left corner, behind (BG) or over (FG, plain) the body, on every later page, or on that page only for the starred form;\ClearShipoutPictureempties the list.setspacesingle-spaces floats and footnotes assetspace.stydoes, so\baselinestretchreaches the body and not the rows of a table or the lines of a note.titlesec's\titleformatand\titlespacingare recorded and read by\@startsection, instead of being gobbled.manyfoot's\DeclareNewFootnotedeclares each class with its counter, numbering style and\footnoteA,\footnotemarkA,\footnotetextA.algorithm2ekeeps its block commands (\If,\For,\While, …) and numbers its lines underlinesnumbered.\tableofcontentshonourstocdepth.comment's\specialcommentdeclares an environment (comment.styitself is not embedded: GPL).xstring's\IfIntegerand\IfDecimalpick one branch.-report-skippednow lists the packages that had no.styto load. -
Classes and fonts (v0.290.0–v0.291.0).
elsarticleis still an emulation, but its front matter is placed:\ead,\journal,\cortext,\fntext,\tnotetext,\tnoteref,\fnref,\corref,\cormark,\addressand\affiliationno longer leak into the body, and\maketitlesets title, authors, affiliations, abstract, keywords, the footnote block and the preprint footer.acmarttitles are Linux Biolinum (the sans family follows series and shape) and\textttis Inconsolata throughzi4/inconsolata(0.5em per character, where Latin Modern Mono is 0.525em). -
Font sizes and classes (v0.299.0–v0.300.0).
\fontsizeand\@setfontsizeread any TeX unit (pt,bp,mm,cm,in,pc,dd,cc,sp), as\set@fontsizedoes by scanning a whole<dimen>;emandexstay refused because they depend on the font. A class that restates\@setfontsize\normalsize{10bp}{12bp}makes that the body size and the size table is rebased on it (springer'ssn-jnlover\LoadClass[11pt]{article}used to keep the 11pt body).\PassOptionsToClassand\PassOptionsToPackageexpand their option argument, so elsarticle's\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}forwards12ptand a 12pt document stays 12pt.authblk's\author[marks]{name}accumulates (“A, B, and C”, marks as superscripts) and\affilis set in\Affilfont(before, the last author replaced the others).elsarticle's\tnotemarkand title-note footnotes print the class's star ($\star$,$\star\star$) and no longer U+2217. The sans bold, oblique and bold oblique of Latin Modern are bound (\textsf{\textbf{x}},\textsf{\textit{x}}), with the optical sizes oftulmss.fd. -
Pages and geometry (v0.299.0–v0.300.0).
\setcounter{page}{n}and\pagenumbering{style}change the printed folio:\setcounter{page}{5}then\pagenumbering{roman}and\pagenumbering{arabic}print 1 5 6 i ii 1 2, astectonicdoes (they used to count 1 2 3 …).geometrytakes the options\PassOptionsToPackagequeued for it (acl.sty'sa4paper,margin=2.5cm,heightrounded=true), readsheightrounded=true|falsein key form, and one margin beside a body no longer cancels the body, so\newgeometry{textheight=9in,top=1in,…}keeps its 9in.eso-pic's\AtText…family uses\evensidemarginon the even pages of atwosidedocument, and\AtText…,\AtPageUpperLeftand\AtPageCenterpictures no longer sit at x = 0. -
Mathematics:
alignand\text(v0.299.0–v0.300.0).alignandalign*follow amsmath for the\tag: the block is placed from\measure@'s shift and gap, and a tag that cannot fit (row + tag +\minalignsep× pairs + 2\mintagsepwider than\displaywidth) goes on a line of its own, flush right, instead of running off the page. A relation opening a right-aligned column (x &\sim y,&\iff …) gets the{}amsmath puts there, so it has its space.\text,\mbox,\hbox,\textrmand\textnormalkeep their interword spaces (go-tex/math v0.51.0:\text{gene } i \text{ is …}used to print as one word). ⚠flalign,alignat,eqnarrayandgatherkeep their earlier tag rule, and\textdoes not yet inherit the surrounding text font (it stays upright). -
Corpus, v0.288.0 → v0.299.0 (140 scored papers, the A/B harness, measured on v0.299.0; v0.300.0 is not measured yet): Σ|page deviation| from the reference 258 → 219, exact pagination 29 → 42 papers (38 moved: 32 toward the reference, 5 away, 1 sideways). 13 references are left out as unusable (a pdfTeX-driver leak or a junk first page).
-
Tables and front matter (v0.301.0–v0.303.0).
tabularray'stblr,longtblrandtalltblrare environments (#955): outer[..], inner spec (colspec,width,hlines,vlines,rowhead,rowfoot, or a bare colspec; a key=value spec with a bare colspec keeps its cells), tabularray's row padding,caption=andlabel=(thetablecounter steps). A table taller than a page is split row by row (longtabletoo); alongtblrrepeats itsrowheadrows on every page and ends all but the last page with the right-aligned "Continued on next page" foot.\SetCell,\SetTblrInnerand the other styling commands are read and dropped;caption-lot,entry=and the booktabs themes are not modelled.titlesec'sexplicitoption makes the\titleformatbefore-code take the title as#1, so{\MakeUppercase{#1}}works (#954).elsarticle's\cormark,\correfand\cortextprint$\ast$(#951),\textsuperscriptfollows the current size (\sf@size, #951), and5pis two columns under a title block that spans both (#953). -
Corpus, v0.302.0 → v0.303.0: Σ|page deviation| 245 → 239; one witness, 2407.19892, goes 28 → 31 pages (reference 34).
-
Command coverage (v0.307.0). How many TeX primitives,
latex.ltxkernel commands and package commands the engine accepts, tests, and holds to the reference engine, raw and weighted by corpus usage (the package scope counts only the names a package's own files define; kernel names stay in the kernel scope), with the definition and limits of each state: go-tex.github.io/docs/main/coverage. -
Not yet: TikZ/pgf drawing (gated behind
GOTEX_PGF, in bring-up), full float pagination (GOTEX_FLOATS), two-column reprint layouts (GOTEX_TWOCOLUMN), EPS graphics (an.epsis measured from its%%BoundingBox, so its placeholder has the right shape, but it is not drawn),rotating's sideways floats (sidewaystable/sidewaysfigureare undefined, so the body sets inline and its caption carries no number), and the XeTeX/LuaTeX Unicode engines /fontspec.
A .tex is a program and this package is its interpreter. Lenient mode is
offered above as a preview for "a real third-party paper", the fidelity work runs
the engine over arXiv sources in bulk, and the playground runs it on whatever a
visitor pastes. Four properties are therefore held on purpose rather than by
accident, each with a test that fails if it stops being true:
- A document cannot run a process. No
os/exec, nosyscall.Exec— TeX's\write18shell escape has no implementation here. Asserted by a scan of the package's own source, since there is no API that could express the property. - A document cannot write a file. No
os.Create,os.WriteFile,os.Remove,os.Rename… in the engine package. (cmd/is deliberately out of scope: the CLI writes the PDF it was asked for.) - A document cannot read a file outside the search roots.
\input,\include,\usepackage,\documentclassand\bibliographyresolve only under the working directory and theTEXINPUTS/GOTEX_TEXMFentries — the same search path the engine already looked in. This is TeX Live'sopenin_any=ppolicy.GOTEX_READ_ANY=1is a named opt-out for a macro tree deliberately kept outside the document. - A document cannot exhaust memory or run forever. A macro that expands
exponentially — ten macros, each ten copies of the next — asks for 10¹⁰
characters while taking few expansion steps and keeping a shallow input
stack, so the step and depth ceilings could not see it: it reached 15.96 GB
and was still growing. One paragraph is now bounded (200 000 nodes, against a
largest-real-paragraph of 8 881 measured over the fidelity corpus) and the run
ends rather than recovering, as TeX's capacity error does. The rest was the
hyphenator: a document with no space in it is one enormous word and Liang's
algorithm is quadratic in a word's length, so TeX's own limit applies — no word
longer than 63 letters is hyphenated (
tex.web§891). The same file now fails in 0.06 s at ~90 MB. The same expansion routed into a macro rather than onto a page took a second ceiling:\edef\boom{…}never builds a paragraph, so it passed the first one untouched at 6.3 GB while the typeset form stopped at 97 MB. One replacement text is now bounded too (1 000 000 tokens, against a largest-real-replacement-text of 2 999 measured over the same corpus), and that file returns in 0.38 s at 99 MB — against tectonic's 236 MB, where TeX'smain_memoryanswers the same shape.
What that does not cover, stated rather than glossed over:
\fontand\includegraphicsread by absolute path, because each decodes its file and the engine loads system fonts from/System/Library/Fonts. A file that is neither a font nor an image yields an error and no content, so nothing is spliced into the page — but the shape of that error still tells a document whether a path exists.- The first two properties are read off the source, not enforced at runtime: they say the package contains no such call, which is what makes a commit that adds one fail the test and have to argue the case.
- The CLI may use the network.
gotexfetches the TeXMF bundles a document asks for (\usepackage{pgf}and friends) unless-offlineis given, so the document influences what is downloaded — but only names a closed registry knows become bundles, so it cannot aim the fetch somewhere of its own choosing. To decide which bundles are needed the CLI also reads the document's class file, one level deep and by NAME only: a\documentclassargument carrying a path separator is not read, because that read happens a layer above the engine's own policy. The engine package itself opens no connection.
govulncheck reports no called vulnerability under the pinned toolchain
(go 1.27.1); a 1.26.4 build of the same code called six, among them an
encoding/xml recursion bomb reachable from an SVG figure.
Each stage is gated by an objective oracle:
- ✅ Mouth + gullet — tokenizer,
eqtb, macros, expansion. - ✅ Stomach — box/glue/penalty model in scaled points, h/v lists,
Knuth–Plass line breaking with an emergency pass, cost-based page builder,
\halign. The page builder keeps TeX's two page measurements apart:page_total, which is what the break is decided on, andpage_depth, which is not charged against the goal and is capped at\maxdepth(tex.web19519-19529, 19594-19599). Summing the two, as this did, refused a page that filled to exactly\textheightover the descender of its own last line and cost it a line (#622, #648). The page also carries its glue:page_so_faris eight numbers in TeX (tex.web19226-19232) — the goal, the total, the depth, three orders of infinite stretch, the finite one and the shrink — and the badness that decides a break is a function of the shortfall over the glue available to absorb it (19593-19599), not of two heights. A page ending in\vfillis badness 0 to TeX and was ~10000 here. That badness is now TeX's own integer function (§108, with its three overflow branches and the octal rounding constants) rather than a float100·(t/s)³: the two agree on ordinary values and diverge exactly where TeX's rounding decides a close break. Since a breakpoint's cost isbadness + penalty, every penalty was until then being compared against numbers on the wrong scale.\hspaceand\vspaceread a glue, as the reference does by putting their argument through a skip register (ltspace.dtx1412-1413, 450): reading a rigid dimen kept the natural width and dropped the stretch, so\hspace{\fill}became a 0pt space and the words on either side were set adjoining — 188.50 wheretectonicputs the second one at the right margin, 477.48.\fill,\enskipand\samepageare defined, and\stretchis the reference's second order of infinity (0pt plus n fill, l.1454) rather than the first, which decides who wins the leftover space on a list that also holds a\hfil.\vfil/\vfill/\vsscontribute their glue at the reference's orders (tex.web§20557-20559, §20600-20601, §3318-3320), and\vfillis the second order where a macro in the format used to shadow the primitive with the first (#674). A footnote's mark is whatever\thefootnoteexpands to, not digits built in Go: the counter is the TeX counter\c@footnote(latex.ltx:13164-13165), so\renewcommand\thefootnote{\fnsymbol{footnote}}works, and\maketitlescopes it to\@fnsymbolasarticle.cls:205does — a title block's\thankscomes out∗, not1, as it does in the reference. The foot label carries no full stop (\@makefnmarkhas none); this engine wrote1.and a space. And a note's layout is\@makefntext, called, not a row built in Go: the three base classes right-align the mark in a1.8embox (\hb@[email protected]{\hss\@makefnmark}#1,article.cls:609-612,report.cls:708,book.cls:714), so every note's text used to begin one box-width to the left of the reference's — measured as no box of14.400ptanywhere on the page before and one now, with72 of the 154corpus papers rendering differently and Σ|deviation|277 → 276. The mark reaches it through\@thefnmarkand\@makefnmark(latex.ltx:13168,:13179), both replaceable by a document.\@textsuperscriptis still the identity here, so the mark is set at text size on the baseline where the reference raises it — a separate divergence, unchanged.\footnoteruleis a macro the page builder executes, not three nodes built in Go:60 of the 154measured papers redefine it, and what this engine drew wasarticle.cls:605-608's.4\columnwidth— right for article and its relatives by coincidence, where the kernel's own rule is a fixed2in(latex.ltx:13162-13163).\let\footnoterule\relaxnow draws nothing, which is whatarticle.cls:172asks for on a title page. A citation's brackets are\@biblabeland\@cite, called, not brackets built in Go: the reference makes both a macro (latex.ltx:13324,:13322) andarticle.cls:568builds the bibliography list's label by calling\@biblabel. This engine runs real.clsfiles, so a class's redefinition was already in the eqtb and was dropped at the point of use — a document writing\def\@biblabel#1{<<#1>>}rendered byte-identically to one that did not.22 of the 154measured papers carry a class that redefines one of the two (19for\@biblabel,12for\@cite), and only 50 of the 154 ship a class at all, so that is 44 % of the papers that bring their own;18 of 154render differently.\if@tempswais set rather than inherited, aslatex.ltx:13283-13284sets it, so a redefined\@citecan decide whether to print the note.\@citex— the iteration natbib replaces — is not executed; one paper in 154 shipsnatbib.sty(#681). A package can talk to itself across passes, so the realnatbibruns.\@auxoutwas\def\@auxout{-1}, a number no\openoutever opens, so everything a package wrote to the.auxwent nowhere; it is a real stream now, carried to the next pass beside the label tables. Given the genuinenatbib.sty,\citep/\citetinauthoryearmode produce word for word whattectonicproduces, with no undefined commands skipped (#712). What is left is reaching the file rather than running it:20 of the 154measured papers\usepackage{natbib}and none of those twenty ships it, so all twenty fall back to the built-in emulation, where\citetloses the author name outright — "obtained by [27]" where LaTeX writes "obtained by Nordbotten et al. [27]" (#703). A display chooses between the long and the short skips.tex.web:22578-22585takes\abovedisplayshortskip/\belowdisplayshortskipwhen the previous line ends to the left of where the display begins — they do not collide, so little space is needed — and this engine always took the long pair. Measured baseline to baseline across one display between two text lines:11.96/17.93in the reference against our21.92/21.92, now11.96/17.93exactly. A document of 40 displays went from 6 pages to the reference's 5. On the corpus the signed page bias falls from+50to+35and the median absolute deviation reaches 0 — but Σ|deviation| moves only 276 → 275: every mover got shorter, which rights the papers we set too long and worsens six we already set too short, two of them from exact. That surplus glue was cancelling a second, opposite error, now measurable on its own (#683).\predisplaysizefollowstex.web:21781-21813, two ems and all, but is not exposed as a register. Every page is packedexactlyto\vsize, whatever its page style (tex.web§19321page_goal:=vsize, §19564best_size:=page_goal, §19813vpackage(…,best_size,exactly,…)): TeX has no page-style branch in the packer, because styles are the output routine's business.\pagestyle{empty}— which this engine takes as its default — was packed at its natural height, so the page was exactly as tall as its material and every vertical glue on it stretched by nothing:\vspace{\fill}under that style put its word at 143.91 wheretectonicputs it at 664.72. §19811-19814 setsvbadness:=inf_badandvfuzz:=max_dimenaround that call "to inhibit error messages", so a page that cannot fill itself is packed short in silence — it is not a warning. A running head was four mechanisms, and three correct fixes left it empty. The band and the folio were right (#726), the page-style dispatch was right, the mark pair moved to\@themark— the name the kernel and every class use (#728) — and the head stayed blank, becauseamssubstrate.gocarried\def\mark#1{}: a stub that discarded its argument, one layer below all three. A stub like that is the one shape no channel sees — the document asks, the engine says nothing, the suite stays green, and the loss exists only as ink that is not on the page. It cost 27 of the 128 corpus papers with a reference their head. What found it was a test asking not is this layer right but does the node arrive (#729). Marks now travel as nodes on the vertical list, their argument expanded at mark time (scan_toks(false,true), so amsart's\mark{\the\@temptokena}stores the pair and not the three tokens that would fetch it), and\topmark/\firstmark/\botmarkfollow §1012's arithmetic (:19718-19729,:19782-19789) — including the two consequences a plainer reading misses and a head depends on:\botmarkis not cleared on a page with no marks, so a head set once at\maketitlestays; and\firstmarkfalls back to\topmark, so a page broken mid-section reports the mark in force at its own top. Measured: 6 corpus papers gain ink at identical page counts, invisible to Σ and visible only tohashdiff, and Σ/bias/exact do not move. A\markin a class preamble is read and dropped:ws-fnl.clscarries one, and contributing it to a page that does not exist yet turned 9 pages into 10 with the ink identical.\\is a Go primitive that scans its own star and optional length: as a macro built on\@ifstarit put\@ifstarinto the maths source and every formula holding a matrix row separator was refused, because the maths capture writes a control sequence verbatim and never consults its meaning — measured four ways, including a primitive that callsfailand is never run during a capture.\\[20pt]used to typeset the five characters[20pt]and\\*a*, on 38 and 9 of the 154 measured papers; the length now rides on the forced penalty and the line loop emits it after the line, giving the reference's 31.88pt step where a bare\\gives 11.96 (#662).\vadjustis implemented (tex.web§2994-3001, §12900-12903, §17413-17418, §21195, §21199-21231): vertical material written inside a paragraph rides along in an adjust node that contributes no width, and comes out into the enclosing vertical list after the line it was written on — measured againsttectonicas a 41.84pt baseline step where a normal one is 11.96, with the control paragraph unchanged. It is an error in vertical mode, as §21195 requires. Three commands were waiting on it and now work:\pagebreak/\nopagebreakin horizontal mode (the reference makes two pages on a short first paragraph and so do we, where we made one),\\*'s page-break suppression (the\nobreakgoes inside the\vadjust, so it reaches the vertical list where 10000 refuses a page rather than a line), and\\[len]'s space, which now uses the same mechanism instead of the stopgap field it shipped with (#665).\pagebreak,\nopagebreak,\linebreakand\nolinebreakare penalties rather than no-ops (ltspace.dtx294-306, 344-375, 527-531): the optional degree goes through\@getpen(0, 51, 151, 301, 10000) and the sign is what separates forcing from forbidding. All four did nothing at all before, on 18 of the 154 measured corpus papers;\pagebreakbetween two paragraphs made one page wheretectonicmakes two. Two gaps are left and named: in horizontal mode\pagebreakneeds\vadjust, which is not implemented (#665), and a line ended by a forced break is not justified here —\parfillskipis appended to every forced-break fragment instead of once per paragraph, so the slack it should give the interword glue is absorbed (#666). The second pass is the final pass, astex.web§863 says in one line:final_pass:=(emergency_stretch<=0), set on entering it.\emergencystretchis accept-and-ignore here, so there is no third pass and TeX'sartificial_demerits— a break taken at zero cost where the line is hopeless, nothing feasible was recorded and one node is active — belongs to the second. It could not be armed whilego-typeset/linebreakrecorded every forced break whatever its badness and ran that clause outside §16769's branch; both are fixed in its v1.4.0. ⭐ And the passes are now only TeX's, which closed #768's second finding. A fourth pass used to run at an effectively infinite tolerance whenever the others left a bad line;tex.webhas no such pass — §863 has three and none of them raises the tolerance — and it would rather leave a line overfull than take more hyphens. On #768's witness (\hsize=45pt,\fussy) the reference sets 5 lines with four overfull boxes; with that pass we set 7 that all fit, and we now set the reference's 5, its first three lines matching to 0.02pt. It could not go until\leftskip/\rightskipbecame the background of every line and afilstopped being flattened into the finite stretch column (go-typeset/linebreakv1.5.0, its #12 item 1): §16790-16793 gives a line carrying anyfilbadness 0, so under\raggedrightthe first pass — which has no hyphens — succeeds outright, where before every such line was merely loose and four tests stopped hyphenating when the fourth pass was taken away. ⚠ The corpus says faithful, not better. Over 40 papers scored both sides: line agreement 91.23 → 91.34%, papers whose page count is exactly the reference's 12 → 13/40, one paper that did not render now rendering and landing exactly right — against Σ|page error| 123 → 125 and mean divergence 3.884 → 3.935. Three papers moved one page, two of them missing pages, which is #381 (our lines hold more than the reference's) exposed a little further now that lines are no longer padded out with extra hyphens. A paragraph is broken on its own SHAPE, not only on\hsize. TeX's shape parameters reach the line breaker rather than being accepted and ignored:\hangindent/\hangafter(tex.web§847-850,:16676-16748) and\parshape(:23275-23286, whose last pair repeats for every later line,:16680-16681).\parshapewins over\hangindent, which is not obvious and is settled at:16706— it testspar_shape_ptrfirst and consultshang_indentonly in theelsebranch. All of them last one paragraph:normal_paragraphclears them at every\par(:20756-20761), which became a defect here only once\hangindentstarted working at all. ⚠ A no-regression check, not a win, and the census says why.\parshapeis set by 0 of the 154 measured papers and\hangindentby 3, so the corpus A/B moves Σ|page deviation|306 → 306with 0 papers moved — the predicted result, where anything else would have meant a bug. The witnesses are unit-level, and each was confirmed by removing the line it tests: reading\hangindentfirst makes the precedence test, and only that test, fail. Hyphenation is Liang's algorithm on the embedded US-English patterns (go-typeset/hyphenation), with\lefthyphenmin/\righthyphenmin,\hyphenchar— a face that files it negative is never broken, which is how\textttkeeps code whole (tex.web§896) — and the document's own\hyphenation{…}exception list. Two defects there were invisible to every test: an accented word broke at an offset, because the library built its value array over the word by BYTE index and read it back by RUNE index — the two agree for exactly as long as every letter is one byte, which is every English word and no French one.élémentairesbroke aséléme-ntaires, between the m and the n of a syllable, where no pattern can put a break; with the fix it is whole andprésentationbreaksprésenta-tion, which is where tectonic breaks it (go-typeset/hyphenation#8, #774). And\hyphenation{…}was a stub that discarded its argument — a document writes it for the words the patterns get wrong, so the silence fell exactly on the words it was asked about. An entry now replaces the patterns for its word (tex.web§937), including an entry with no hyphen at all, which says the word may never be broken (#775). And the engine loaded MORE patterns than the reference has. The embedded file isushyphmax.tex:hyphen.tex's patterns, a marker line, then 492 additions. LaTeX'slanguage.datloadshyph-en-us.tex, which is the first half only, so every addition that applied changed a word's break points — including when it forbade a break, since Liang takes the highest value and an even one is a refusal..ev2is one, and it outrankshyphen.tex'sev1er:everycould not be broken at all. tectonic 0.17.0 at\hsize=18ptsetsev-/ery. Loading stops at the marker now, andincomprehensibilities,overwhelm,paragraph,photographyandtypographicalbreak exactly where they did — which is why nothing noticed for as long as the whole file was read. ⚠ Only English patterns are embedded. A paper in another language is set unhyphenated where a real TeX hyphenates it; that gap is tracked in #754. The line straight after a list is not indented, as in LaTeX: after anitemize,enumerate,description,center,quote,quotationorversewith no blank line before the text, the paragraph continues flush left; a blank line indents it as usual. Measured against tectonic, such a line used to start one\parindent(14.94bp) in. The mechanism is\@doendpefrom the 2021-11-15 kernel the reference runs, read from it with\meaning: its flag is local, so a list closed inside{…}leaves the next line indented there, as it does here — the 2024 kernel would not (#857). - ✅ Math —
$…$and the display environments delegated togo-tex/math(vector output). - ✅ Fonts — OpenType via
go-opentype; a built-in font so it runs with no assets, with kerning and ligatures. A family when one is given: roman, bold, italic, slanted (NFSS's own substitution onto the italic), typewriter and sans are each bound to a file, and a glyph is drawn with the face it was measured with —\textbf,\textttand\verbreach the page in their own face, not only in their own widths. The size ladder is the class's table, to the point.\tinythrough\Hugeare ten sizes asize1x.clostates, and three of them are not whole —\Largeis14.4,\LARGE17.28,\huge20.74. A face held its size as an integer, so\Largelanded on 14: 2.8 % narrow on every section heading in every document. Reading each line'sTfout of the PDF, all ten now agree withtectonic(\Large13.95 → 14.35,\huge21 → 20.66,\Huge25 → 24.79), and an[11pt]class sets its body at the10.95its\@xiptstates rather than at 11 (#718, #719). Kerning comes from every lookup, not the first. OpenType applies GPOS lookups in LookupList order and their adjustments add; stopping at the first one that covers a pair returned a deliberate zero and never reached the real value. Libertinus Serif filesA/Vwith0in one kern lookup and−112in a later one, so\hbox{AV}at 10pt measured13.47ptagainst XeTeX's12.35pt, and now measures12.35pt(go-opentype/opentype#63). Neither of these shows in the page-count barometer below: a kern, or a heading a third of a point wider, costs a page only when it tips one. The witness is the oracle comparison. - ✅ Output — PDF (via
go-pdfkit, embedded subset fonts, selectable text, and clickable/Linkannotations for\hrefURIs and\hyperlinkin-document jumps) and self-contained SVG pages; the SVG carries a source map for click-to-line. - ✅ Real classes —
\documentclass{article|report|book|amsart}loads and runs the genuine embedded LaTeX class (see above), reproducing the reference engine's prose on the fidelity gate — in native builds and injs/wasm.
Next: real TikZ/pgf (behind GOTEX_PGF today), float pagination and two-column
reprint layouts out of their env flags, PDF-figure rasterization and clickable
PDF links, a broader real-document conformance corpus (PDF-diff vs pdftex/xetex),
and the TRIP test — see the capability reference
for the complete list of gaps.
the meaningful gate is the conformance ratchet plus the fidelity check against a
real LaTeX engine, not a fixed coverage figure — CI enforces an 80% floor and
measures 91.0% today. Pure Go, CGO=0, go vet clean, green on the host plus
four cross arches under qemu — s390x (big-endian), ppc64le, riscv64 and
loong64 — and on js/wasm and wasip1/wasm.
Fidelity work here is measured, not asserted, and each of these answers one
question the others cannot. They are ordinary go run ./cmd/… programs.
gotex-abdiff |
compiles a corpus of real papers at two revisions and reports Σ|page deviation| against the reference counts, naming every paper that moved. It builds each side in its own git worktree, checks that the head really descends from the base, and prints whether GOTEX_PDFRENDER was set — three measurements had been read the wrong way before it did. It also reports Σ glyphs per side, because a page count cannot tell "the same text, broken differently" from "text that appeared or vanished": pages moving while the ink holds still is a breaking change, ink moving is a content change, and the xkeyval precedent — a package that stopped erroring, same page count, text on the page that had not been there before — was called "nothing moved" by a page-only A/B. ⛔ The ink is a witness, not a score, and the line says so: the reference file carries page counts only, so there is no reference ink to be near or far from. Pages that parse but whose text does not decode are counted in their own field and make the report disown its own glyph delta, because two incomplete sums differ by an amount that looks exactly like ink that moved. Both tools refuse to measure above a 1-minute or 5-minute load average of 8 (cmd/internal/loadguard, shared with gotex-refdiff), and refuse when they cannot read the load at all — an unreadable machine is not an idle one; -under-load '<why>' measures anyway and stamps the reason into the report. |
gotex-refdiff |
compiles a sample of papers with tectonic and with the engine and scores each one: word recall (what text came out) or, with -layout, word displacement (where it landed). -gotex names the binary to measure, so two revisions can be put side by side over the same sample; -list draws that sample from a named corpus list instead of walking a raw arXiv directory, where the papers the REFERENCE cannot compile score "ref-unavailable" — a 30-paper run came back 30 of 30 unavailable on both sides of a change, which reads exactly like "no difference". A compile that merely exhausts -timeout is timed-out and leaves the score on either side, with a banner on stderr: it used to be scored 0 on ours and merely dropped on the reference's, so a slow paper — or a loaded machine — moved the mean one way only. |
gotex-linediff |
puts one page of two PDFs side by side line by line — where each line starts and ends, its baseline, face and size, and, when it holds a dot leader, how many tiles it draws and how far apart. This is the rung below a per-paper score: the sentence a defect is fixed from reads "our entry starts 1.58pt right of the reference's and its dots are twice as dense". It reads the PDFs with go-pdfkit/reader — no qpdf, no poppler, no MuPDF. That extractor now lives in cmd/internal/pdfruns rather than inside this command, so gotex-abdiff can count ink with it instead of a second protocol being written to answer the same question. |
gotex-worddiff |
which words one PDF holds that the other does not, as a multiset, for two builds of this engine and no reference. It answers the question a moved score leaves open — gotex-refdiff says a paper fell 0.1 points, this says which words that was. It reads both files through internal/pdftext, the extractor the score itself uses: a word-diff on a different extractor reports the two extractors' disagreement in the engine's units, which is how a fused CenterforTheoretical got published twice as an engine defect before the line dump showed the spaces were in both files. -layout keeps columns apart — without it a two-column page is read as one stream and the end of one column's line fuses onto the start of another's (disFigure, participaentire), and which boundaries fuse moves when the lines do. On #772's two papers, scoring with -layout extraction made one of two apparent regressions vanish outright and reduced the other to a single word. |
gotex-paramcensus |
which measured papers set a given TeX parameter, which is how a divergence is sized before anyone spends a corpus run on it: \looseness turned out to be set by 0 of the 154 (so implementing it is bit-identical and owes no A/B), \emergencystretch by 4, and only 1 paper has a non-English main language — deflating "English-only hyphenation explains the page-count gap". The obvious grep -rl is wrong five ways, each of which reads as a clean answer: it counts the whole paper tree instead of the measured list; the list names each paper's main.tex, not its directory, so walking its entries reads 154 files where the papers hold 679 and every \inputed chapter is skipped; a commented-out setting is not a setting; a bare substring matches prose; and ⛔ a control word is a prefix of longer control words — asked for \font, a substring scan answered 14 of 154, every hit being \fontsize{13}{16} or \Affilfont and not one a use of the primitive. TeX ends a control word at the first non-letter, so a term that is one is matched to that boundary and \font now answers 2, both of them the current-font token in \fontdimen2\font and \hyphenchar\font. The fix moved only \font: \looseness 0, \emergencystretch 4 and \hangindent 3 are unchanged, so no figure published here had to be revisited. It refuses rather than printing a zero it cannot stand behind — every run must find its -control term (default \documentclass) and must have read a file, because a scan that could not read reports zero exactly like a corpus that holds nothing. |
gotex-coverage |
the coverage floor CI enforces. |
A dot leader is the case that makes the last one worth having: Title. . . . 7
reads the same whether the tiles are 4.8pt apart or 8.5, so no text-level
comparison can see the difference. The drawn positions can.
BSD-3-Clause — see LICENSE. Copyright the go-tex/engine authors.