112 lines
5.5 KiB
HTML
112 lines
5.5 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>roff(9)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>roff(9)</H1>
|
|
<HR>
|
|
<PRE>
|
|
<STRONG>Command:</STRONG> <STRONG>roff</STRONG> <STRONG>-</STRONG> <STRONG>text</STRONG> <STRONG>formatter</STRONG>
|
|
<STRONG>Syntax:</STRONG> <STRONG>roff</STRONG> [<STRONG>-hs</STRONG>] [<STRONG>+</STRONG><EM>n</EM>] [<STRONG>-</STRONG><EM>n</EM>] <EM>file</EM> ...
|
|
<STRONG>Flags:</STRONG> <STRONG>-h</STRONG> Expand tabs to spaces in output
|
|
<STRONG>-s</STRONG> Stop before each page; continue on DEL
|
|
<STRONG>+</STRONG><EM>n</EM> Start printing with page <EM>n</EM>
|
|
<STRONG>-</STRONG><EM>n</EM> Stop after page <EM>n</EM>
|
|
<STRONG>Examples:</STRONG> roff file # Run off <EM>file</EM>
|
|
roff +5 file # Run off <EM>file</EM> starting at page 5
|
|
|
|
<EM>Roff</EM> is a text formatter. Its input consists of the text to be
|
|
output, intermixed with formatting commands. A formatting command is a
|
|
line containing the control character followed by a two character
|
|
command name, and possibly one or more arguments. The control character
|
|
is initially '.' (dot). The formatted output is produced on standard
|
|
output.
|
|
|
|
The formatting commands are listed below, with <EM>n</EM> being a number, <EM>c</EM>
|
|
being a character, and <EM>t</EM> being a title. A + before <EM>n</EM> means it may be
|
|
signed, indicating a positive or negative change from the current value.
|
|
Initial values for <EM>n</EM>, where relevant, are given in parentheses.
|
|
|
|
<STRONG>.ad</STRONG> Adjust right margin.
|
|
<STRONG>.ar</STRONG> Arabic page numbers.
|
|
<STRONG>.br</STRONG> Line break. Subsequent text will begin on a new line.
|
|
<STRONG>.bl</STRONG> n Insert <EM>n</EM> blank lines.
|
|
<STRONG>.bp</STRONG> +n Begin new page and number it <EM>n</EM>. No <EM>n</EM> means +1.
|
|
<STRONG>.cc</STRONG> c Control character is set to <EM>c</EM>.
|
|
<STRONG>.ce</STRONG> n Center the next <EM>n</EM> input lines.
|
|
<STRONG>.de</STRONG> zz Define a macro called <EM>zz</EM>. A line with '..' ends definition.
|
|
<STRONG>.ds</STRONG> Double space the output. Same as <STRONG>.ls</STRONG> <STRONG>2</STRONG>.
|
|
<STRONG>.ef</STRONG> t Even page footer title is set to <EM>t</EM>.
|
|
<STRONG>.eh</STRONG> t Even page header title is set to <EM>t</EM>.
|
|
<STRONG>.fi</STRONG> Begin filling output lines as full as possible.
|
|
<STRONG>.fo</STRONG> t Footer titles (even and odd) are set to <EM>t</EM>.
|
|
<STRONG>.hc</STRONG> c The character <EM>c</EM> (e.g., %) tells <EM>roff</EM> where hyphens are
|
|
permitted.
|
|
<STRONG>.he</STRONG> t Header titles (even and odd) are set to <EM>t</EM>.
|
|
<STRONG>.hx</STRONG> Header titles are suppressed.
|
|
<STRONG>.hy</STRONG> n Hyphenation is done if <EM>n</EM> is 1, suppressed if it is 0.
|
|
Default is 1.
|
|
<STRONG>.ig</STRONG> Ignore input lines until a line beginning with '..' is
|
|
found.
|
|
<STRONG>.in</STRONG> n Indent <EM>n</EM> spaces from the left margin; force line break.
|
|
<STRONG>.ix</STRONG> n Same as .<EM>in</EM> but continue filling output on current line.
|
|
<STRONG>.li</STRONG> n Literal text on next <EM>n</EM> lines. Copy to output unmodified.
|
|
<STRONG>.ll</STRONG> +n Line length (including indent) is set to <EM>n</EM> (65).
|
|
<STRONG>.ls</STRONG> +n Line spacing: <EM>n</EM> (1) is 1 for single spacing, 2 for double,
|
|
etc.
|
|
<STRONG>.m1</STRONG> n Insert <EM>n</EM> (2) blank lines between top of page and header.
|
|
<STRONG>.m2</STRONG> n Insert <EM>n</EM> (2) blank lines between header and start of text.
|
|
<STRONG>.m3</STRONG> n Insert <EM>n</EM> (1) blank lines between end of text and footer.
|
|
<STRONG>.m4</STRONG> n Insert <EM>n</EM> (3) blank lines between footer and end of page.
|
|
<STRONG>.na</STRONG> No adjustment of the right margin.
|
|
<STRONG>.ne</STRONG> n Need <EM>n</EM> lines. If fewer are left, go to next page.
|
|
<STRONG>.nn</STRONG> +n The next <EM>n</EM> output lines are not numbered.
|
|
<STRONG>.n1</STRONG> Number output lines in left margin starting at 1.
|
|
<STRONG>.n2</STRONG> n Number output lines starting at <EM>n</EM>. If 0, stop numbering.
|
|
<STRONG>.ni</STRONG> +n Indent line numbers by <EM>n</EM> (0) spaces.
|
|
<STRONG>.nf</STRONG> No more filling of lines.
|
|
<STRONG>.nx</STRONG> f Switch input to file <EM>f</EM>.
|
|
<STRONG>.of</STRONG> t Odd page footer title is set to <EM>t</EM>.
|
|
<STRONG>.oh</STRONG> t Odd page header title is set to <EM>t</EM>.
|
|
<STRONG>.pa</STRONG> +n Page adjust by <EM>n</EM> (1). Same as .bp
|
|
<STRONG>.pl</STRONG> +n Paper length is <EM>n</EM> (66) lines.
|
|
<STRONG>.po</STRONG> +n Page offset. Each line is started with <EM>n</EM> (0) spaces.
|
|
<STRONG>.ro</STRONG> Page numbers are printed in Roman numerals.
|
|
<STRONG>.sk</STRONG> n Skip <EM>n</EM> pages (i.e., make them blank), starting with next
|
|
one.
|
|
<STRONG>.sp</STRONG> n Insert <EM>n</EM> blank lines, except at top of page.
|
|
<STRONG>.ss</STRONG> Single spacing. Equivalent to .ls 1.
|
|
<STRONG>.ta</STRONG> Set tab stops, e.g., .ta 9 17 25 33 41 49 57 65 73
|
|
(default).
|
|
<STRONG>.tc</STRONG> c Tabs are expanded into <EM>c</EM>. Default is space.
|
|
<STRONG>.ti</STRONG> n Indent next line <EM>n</EM> spaces; then go back to previous indent.
|
|
<STRONG>.tr</STRONG> ab Translate <EM>a</EM> into <EM>b</EM> on output.
|
|
<STRONG>.ul</STRONG> n Underline the letters and numbers in the next <EM>n</EM> lines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|