How closely does the browser follow TEX? To find out, a document is typeset by LuaTeX twice from one run: as a pageless PDF – one page as tall as the document, so that nothing is moved to another page – and in the browser by ReflowTEX, with its column exactly as wide as the PDF’s. The two are then compared in two ways, each with a tool to see the results. The first is also run on a corpus of openly licensed papers: Papers, below.
The first comparison uses no pixels. The position of every glyph and rule in the PDF is read from the PDF, and the position the browser gave it from the page, and the two are matched. This is what the render tests do on every change to ReflowTEX: a short document for each feature (paragraphs, inline mathematics, displays, alignments, lists, footnotes, microtype, rules, TikZ pictures) and all of the AMS sample paper testmath.tex. The short documents are also typeset 100pt narrower and 85pt wider, and compared with the page as the browser breaks it again for those widths. In the short documents no glyph is more than 0.014pt from where TEX put it; in testmath.tex, no more than 0.1pt.
Render tests opens every test: the PDF beside the page, anything that does not match marked on both, and the inspector open on the page. Tools, Render tests says more.
How it looks
The second comparison draws testmath.tex both ways, as a PDF renderer and as the browser draw it, and compares the two pictures pixel by pixel, line by line. As the glyphs are in the same places, what differs is the drawing: the two smooth the edges of glyphs differently, and the PDF renderer puts each glyph on a whole pixel row.
Pixel comparison shows the pictures for the whole paper, with the rows that differ marked.
Papers
The papers are those in Showcase. We chose them because their licences (CC BY 4.0, CC BY-SA 4.0, CC0 and, for one, the GPL) allow us to serve a copy of them here. Each one shows its licence and authors, and links to where it was published.
They are compared as the render tests are: each is typeset by LuaTeX as a pageless PDF, its text set as one long page, and in the browser at the same text width, and the two are compared glyph by glyph. A paper’s placement is the share of TEX’s glyphs that the browser puts within 0.092pt of TEX’s position along their line, in the lines that match. A vertical jump is a gap between two lines whose height differs from TEX’s by more than the same tolerance.
A two-column paper is set here in one column at its full text width, as a web page has no columns; we compare with TEX setting that one column, not with the two-column PDF. Only each paper’s own text width is measured: at other widths the browser breaks the lines again, and there is no PDF from TEX to compare with. The figures count glyphs only; the pixel comparison above is made for testmath.tex alone.
Run of 28 October 2026, on commit 57027f0, with TeX Live 2025 (frozen); tolerance 0.092 pt.
CI regenerates these figures; the site shows the latest run.
Every paper of the corpus: placement, whole-page placement, vertical jumps, glyphs compared, and status, by domain
Placement: the share of TeX's glyphs that the browser puts within the
tolerance of TeX's position along their line, in lines that match.
Whole page: the share of TeX's glyphs within the tolerance of their position on the whole
long page, an older and stricter measure; one vertical shift early in a paper lowers it for
the rest of the paper.
Jumps: gaps between lines that differ from TeX's by more than the tolerance.
Glyphs: how many were compared.
We chose 49 openly licensed papers.
5 of them use a class or style that requires
pdfTeX and refuses LuaTeX, which ReflowTeX typesets with, so they are not shown: