pyroff

pyroff is a family of Python transpilers that revive the troff preprocessor mini-languages for modern tooling. Instead of one monolithic program, the ecosystem follows the Unix philosophy: small tools, each doing one job — eqn for mathematics, tbl for tables, pic for diagrams — each translated into a modern output format.

The first to be ready is the eqn → LaTeX pipeline, deployed with Pyodide so the compiler runs entirely inside the user’s browser: the resulting LaTeX is rendered via KaTeX, with no server involved. You can try it online.

The underlying package is designed for broader format transformations, including tbl to HTML and pic to SVG. The source code is freely available at GitHub.