Eqn

From Wikipedia, the free encyclopedia

Part of the troff suite of Unix document layout tools, eqn is a preprocessor that formats equations for printing. A similar program, neqn, accepted the same input as eqn, but produced output tuned to look better in nroff. The eqn program was created in 1974 by Brian Kernighan and Lorinda Cherry.

The input language used by eqn allows the user to write mathematical expressions in much the same way as they would be spoken aloud. The eqn language is similar to the mathematical component of TeX, which appeared several years later, but is simpler and less complete.

A independent compatible implementation of the eqn preprocessor has been developed by GNU as part of groff, the GNU version of troff.

Contents

[edit] Syntax examples

Here is how some of the examples from [1] would be written in eqn (with equivalents in TeX for comparison):

TeX eqn formula
$a^2$ a sup 2 a2
$\sum_{k=1}^N k^2$ sum from { k = 1 } to N { k sup 2 } \sum_{k=1}^N k^2

[edit] See also

[edit] References

  • Brian W. Kernighan and Lorinda L. Cherry. A System for Typesetting Mathematics, Communications of the ACM 18 (1975), 151–157.

[edit] External links