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

n
neqn(1) neqn(1)
Matrices and Determinants
Matrices are made with matrix:
Source Text Result
left | { matrix { |xi 1 |
lcol { x sub i above y sub 2 } | |
ccol { 1 above 234 } } } right | |y2 234|
||
In addition, there is rcol for a right-aligned column.
Diacritical Marks
Diacritical marks are made with dot, dotdot
, hat, tilde, bar, vec, dyad, and under:
Source Text Result
x dot = f(t) bar . ____
x=f(t)
y dotdot bar ˜=˜ n under __
..
y=x
_
x vec ˜=˜ y dyad - -
x=y
Point Sizes and Fonts
Point sizes and fonts can be changed with size n or size +
|-n, roman, italic, bold, and font n.
Point sizes and fonts can be changed globally in a document by
gsize
n and gfont n, or by the
command-line arguments
-sn and -fn.
Normally, subscripts and superscripts are reduced by 3 points from the previous size; this can be changed
by the command-line argument -pn.
Vertical Alignment
Successive display arguments can be lined up. Place mark before the desired lineup point in the first equa-
tion; place lineup at the place that is to line up vertically in subsequent equations.
Shorthand Forms
Shorthand forms can be defined or existing keywords redefined with define:
define thing % replacement %
defines a new token called thing that is replaced by replacement whenever it appears thereafter. The % can
be any character that does not occur in replacement. The spaces around the % delimiters are required.
Other Keywords
Keywords such as sum (displayed as R, standing for uppercase sigma), int (ˆ, integral sign), inf (oo,
infinity sign), and shorthands such as >= (> overstruck by _), != (= overstruck by /), and -> (->) are
recognized. Greek letters are spelled out in uppercase or lowercase as desired, as in alpha (displayed as
A, standing for lowercase alpha) or GAMMA (displayed as G, standing for uppercase gamma). Mathematical
words such as sin (sin), cos (cos), and log (log) are made Roman automatically. nroff
four-
character escapes, such as
\(dd (| overstruck by =, standing for double dagger) and \(bu (o overstruck
by +, standing for bullet), can be used anywhere.
Verbatim Text
Strings enclosed in double quotes ("string") are passed through untouched; this permits keywords to be
entered as text, and can be used to communicate with nroff when other methods fail. Details are given
in the manuals cited below.
HP-UX 11i Version 2: December 2007 Update 3 Hewlett-Packard Company 31