Linux and Unix eqn, neqn and checkeq

Quick links

About eqn, neqn and checkeq
Syntax
Examples
Related commands
Linux and Unix main page

About eqn, neqn and checkeq

The eqn and neqn commands are language processors to assist in describing equations. eqn is a preprocessor for troff and is intended for devices that can print troff 's output. neqn is a preprocessor for nroff and is intended for use with terminals.

Syntax

eqn [ -d xy ] [ -f n ] [ -p n ] [ -s n ] [ file ]

neqn [ file ]

checkeq [file]

-dxySet equation delimiters set to characters x and y with the command-line argument. The more common way to do this is with delim xy between .EQ and .EN. The left and right delimiters may be identical. Delimiters are turned off by delim off appearing in the text. All text that is neither between delimiters nor between .EQ and .EN is passed through untouched.
-fnChange font to n globally in the document. The font can also be changed globally in the body of the document by using the gfont n directive, where n is the font specification.
-pnReduce subscripts and superscripts by n point sizes from the previous size. In the absence of the -p option, subscripts and superscripts are reduced by 3 point sizes from the previous size.
-snChange point size to n globally in the document. The point size can also be changed globally in the body of the document by using the gsize n directive, where n is the point size.
fileThe nroff or troff file processed by eqn or neqn.

Examples

eqn myfile.txt

Process of a troff file.

Related commands

nroff
tbl
troff