HP-UX Reference (11i v1 00/12) - 1 User Commands N-Z (vol 2)

__________________________________________________________________________________________________________
__________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/neqn.1
__________________________________
___ ___
n
neqn(1) neqn(1)
NAME
neqn - format mathematical text for nroff
SYNOPSIS
neqn [-d xy ][-s n ][-f n][-p n][file ...]
Note
The output of neqn is very device-dependent. See the "WARNINGS" section.
DESCRIPTION
neqn is a preprocessor for nroff (see nroff(1)) for typesetting mathematical text on typewriter-like ter-
minals. Its invocation is almost always one of the following two forms or equivalent:
neqn les | nroff | col
tbl
files | neqn | nroff | col
If no files are specified (or if - is specified instead of file), neqn reads from standard input. A line begin-
ning with .EQ marks the start of an equation. The end of an equation is marked by a line beginning with
.EN. Neither of these lines is altered, which means that they can be defined in macro packages to get
centering, numbering, etc.
It is also possible to designate two characters as delimiters; subsequent text between delimiters is then
treated as neqn input. Delimiters can be set to characters x and y with the command-line argument -d
xy
or (more commonly) with the sequence
.EQ
delim
xy
.EN
The left and right delimiters can be the same character; the dollar sign ($) is often used as such a delimiter.
Delimiters are turned off by
delim off (see the "WARNINGS" section). All text that is neither between
delimiters nor between .EQ and .EN is passed through untouched.
Tokens within neqn equations are separated by spaces, tabs, newlines, braces, double quotes, tildes, and
circumflexes. Braces ({}) are used for grouping; generally speaking, anywhere a single character such as x
can appear, a complicated construction enclosed in braces can be used instead. Tilde (
˜) represents a full
space in the output; circumflex, (
ˆ) half as much.
Subscripts and Superscripts
Subscripts and superscripts are produced using sub and sup as follows:
Source Text Result
x sub j x
j
a sub k sup 2 a
k
2
e sup {x sup 2 + y sup 2} e
x
2
+y
2
Fractions
Fractions are produced by using over:
Source Text Result
a over b
b
a
__
Square Roots
sqrt produces square roots:
Source Text Result
1 over sqrt {ax sup 2+bx+c}
ax
2
+bx+c
1
___________
HP-UX Release 11i: December 2000 1 Section 1557
___
___