gotex-coverage

command
v0.172.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Command gotex-coverage is a corpus content-coverage detector: it renders a directory of real LaTeX papers through the pure-Go engine and flags the SILENT swallows — papers that typeset far less than their source implies. Undefined- command reporting cannot see this failure mode: a runaway, an unclosed group, or a dropped body macro loses content while the page still looks plausible and no unknown \cs is reported.

For each paper it picks the top-level .tex (00README.json's "toplevel" source, else the .tex carrying \begin{document}), measures the source body size (letters, with % comments and the preamble before \begin{document} excluded, following \input/\include), renders it, counts the glyphs actually drawn (the number of `<path` elements across all page SVGs), and computes a coverage ratio of glyphs per source-KB. It then reports the low-coverage outliers — papers whose ratio is far below the corpus median — worst first, surfacing the Diagnostics swallow flags (Runaway / OpenGroups / PageCapHit) and the undefined-command count so a true silent swallow (low coverage, NO undefined command) stands out.

Usage:

gotex-coverage [flags] <corpus-root>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL