XXXXXX
X X
X X XXXX XXXX
X X X X X
X X X X X
XXXXXX XXXX XXXX
DOC is a Documentation preparation system similar
to the ROFF text formatter.
DOC was designed by Roy A. Leban and Ken Jordan.
DOC was written June, 1982 by Roy A. Leban.
Last changed September 10, 1984 by Roy A. Leban.
(C) Copyright 1984 by SoftPlus, Inc.
The DOC command line is as follows:
DOC input_file[.doc] [output_file[.prn]]
If no input file is given on the command line, DOC prompts
for the input and output files.
In the input file, DOC accepts the following requests:
Function Request Argument Default Break
Begin Page .bp pageno +1 Yes
Boldface .bf pair none No
Break .br Yes
Command Char .cc char "." No
Center .ce numlines 1 Yes
Chapter .ch X Y name Yes
Even Footer .ef [#] title none No
Even Header .eh [#] title none No
Fill .fi Yes/No Yes Yes
Footer .fo [#] title none No
Header .he [#] title none No
Indentation .in numchars 0 Yes
Ignore Chars .ig ccc... none No
Italics .it pair none No
Justify .ju Yes/No Yes Yes
Linelength .ll numchars 60 No
Margin 1 .m1 numlines 4 No
Margin 2 .m2 numlines 2 No
Margin 3 .m3 numlines 2 No
Margin 4 .m4 numlines 4 No
Need .ne numlines 0 Maybe
No Fill .nf Yes
No Justify .nj Yes
Odd Footer .of [#] title none No
Odd Header .oh [#] title none No
Print Footers .pf Yes/No No
Print Headers .ph Yes/No No
Pagelength .pl numlines 66 No
Page Offset .po numchars 10 No
Sub-Section .sb name Yes
Section .se name Yes
Source include .so filename No
Space .sp numlines 1 Yes
Style .st xyz bu- No
Tab Setting .ta numchars 8 No
Tab Char .tc char none No
Temp Indent .ti numchars 0 Yes
Translate .tr ioio... No
Underline blanks .ub Yes/No No No
Underline .ul pair none No
In addition, the following special requests are accepted
to allow customization of Doc for individual printers.
Function Request Argument Default Break
Boldface On .b+ sequence overprint No
Boldface Off .b- sequence overprint No
Escape Char .ec char none No
Escape Sequence .es char [sequence] No
Italics On .i+ sequence use "_" No
Italics Off .i- sequence use "_" No
Print Literal .pr sequence No
Print on Quit .qt sequence No
Underline On .u+ sequence use "_" No
Underline Off .u- sequence use "_" No
Argument Specifications:
# : The header or footer number being specified (1-9).
If omitted, 1 is assumed.
ccc... : A list of characters.
char : Any single character.
ioio... : A list of character pairs. If an odd number
of characters is given, then the last character
is paired with a space.
filename : Standard filename. If the drive or suffix
is omitted, then the drive or suffix of the
original file is used.
name : The name of a chapter, section or subsection.
numchars : A number of characters.
numlines : A number of lines.
pageno : A new page number.
pair : Any single character (used as toggle), or
a pair of characters (start and stop).
Omission disables feature.
sequence : A sequence of numbers and strings. Numbers
are translated into ASCII characters; strings
are taken as is. (27 "X" 1) is "<ESC>X^A".
title : [See below]
X : The number of the chapter when used in the
chapter heading (sometimes spelled out or in
Roman numerals).
Y : The number of the chapter when used in section
and subsection headings.
xyz : Three style parameters for chapter, section
and subsection headings respectively. The
parameter may be "b" for boldface, "i" for
italics, "u" for underlined, or "-" for normal.
("bui" means boldface chapter headings,
underline section headings, and italicize
subsection headings).
Yes/No : "Y" or "N". Omission is treated as Yes.
If any argument is omitted, then the default is used.
The Margins are as follows:
Margin 1 Before Headers
Margin 2 Headers (extra lines after headers left blank)
Margin 3 Footers (extra lines before footers left blank)
Margin 4 After Footer
A title (header or footer) has the following format:
'left'center'right'
where the single quote represents any non-blank delimiter,
"left" is a string to be left-justified on the output line,
"center" is a string to be centered on the output line, and
"right" is a string to be right-justified on the output line.
A '%' appearing in any of these strings will be replaced with
the current page number on output. '%%' will become '%'.
The # in header/footer requests indicates which header/footer
line is to be set. Header 1 is at the top of Margin 2; footer 1
is at the bottom of Margin 3.
Note the following commands are equivalent:
.fi No .nf
.ju No .nj
-p -page cpr=1984
h="Doc Text Formatter" c="SoftPlus, Inc."
b="Doc"
doc.pas
docio.pas
docget.pas
docput.pas
docproc.pas
doccmd.pas