troff(5) troff(5)
NAME
troff - description of output language
DESCRIPTION
Output from troff is pure ASCII written in the following language:
sn Use point size n.
fn Use the font mounted at position n.
cx Print ASCII character x at the current position.
Cxy Print special character xy at the current position.
Hn Absolute horizontal move to position n.
hn Relative horizontal move of n units.
Vn Absolute vertical move to position n (down is positive).
vn Relative vertical move of n units.
nnx Move nn units horizontally then print ASCII character x.
nb a End of a line.
pn Begin page n.
# ... Comment - to the end of the line.
Dl dx dy Line from current point (x, y) to point (x+dx, y+dy).
Dc d Circle of diameter d with left side at the current
point.
De dx dy Ellipse with axes dx and dy and left side at the current
point.
Da dx1 dy1 dx2 dy2
Counterclockwise arc from current point (x, y) to
(x+dx1+dx2, y+dy1+dy2). Center of the circle is (x+dx1,
y+dy1).
D~ dx1 dy1 dx2 dy2 ...
B-spline from current point (x, y) to (x+dx1, y+dy1),
then to (x+dx1+dx2, y+dy1+dy2).
x init Initialize the typesetter.
x T device The name of the typesetter is device.
Page 1 Reliant UNIX 5.44 Printed 11/98
troff(5) troff(5)
x res n h v The resolution of the typesetting device in increments
per inch is n. Motion in the horizontal direction can
take place in units of h basic increments. Motion in the
vertical direction can take place in units of v basic
increments.
x stop Stop - done forever.
x trailer Generate a trailer.
x font n name Mount font name at position n.
x Height n Set character height to n points.
x Slant n Set character slant to n degrees.
SEE ALSO
troff(1M).
REFERENCE
B. W. Kernighan, A Typesetter-Independent Troff
Page 2 Reliant UNIX 5.44 Printed 11/98