eqn
Mathematical equation preprocessor for troff
TLDR
Process equations in troff input
SYNOPSIS
eqn [options] [files...]
DESCRIPTION
eqn is a preprocessor for troff that formats mathematical equations. It converts a high-level equation description language into troff commands for typeset output.
Equations are enclosed between .EQ and .EN macros or inline delimiters. The language uses words like "over" for fractions, "sup" for superscripts, and "sqrt" for roots.
eqn is typically used in a pipeline with troff/groff for producing technical documents with mathematical notation.
PARAMETERS
FILES
Input files containing equations.-d XY
Set delimiters for inline equations.-f FONT
Set font for equations.-s SIZE
Set point size.-p N
Subscript/superscript size reduction.-C
Recognize .EQ and .EN even in comments.
CAVEATS
Syntax differs from LaTeX. Output requires troff processing. Complex equations need careful formatting. Limited symbol set compared to TeX.
HISTORY
eqn was written by Brian Kernighan and Lorinda Cherry at Bell Labs in the 1970s. It was one of the first tools for typesetting mathematics and influenced later systems.
