home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume8
/
roff_bl
/
README
< prev
next >
Wrap
Text File
|
1989-09-23
|
1KB
|
38 lines
roff is a script that allows you to encode the filters that a troff
file must be passed through along with which macro packages to use
in the document file.
To use roff you simply add a roff command line as the first line of
your document file. Then when you wish to print out the document
you can simply enter
roff filename
roff will generate the correct command stream to print the file.
the roff command line is basically a line of text that is passed to
eval(1). Its format is as follows:
\" exec tbl | pic | eroff -mm
the '\"' is a troff/nroff comment delimeter. The 'exec' helps identify
this line as a roff command line.
the rest of the line is the filters, packages, and macros that the
document file should be passed through. Other examples are:
\" exec eroff
\" exec tbl | eroff -mm -mapt
If you look at the roff script you will notice that we strip off the
first line of the document file (the roff command line) before we
pipe the document through the rest of the filters. At first glance
one might think this isn't necessary, but the mm macros are in my
opinion broke, or at least the ones we have are. If the very first
physical line of the document isn't .PH "''''" you get the header.
Even if the first line is simply a comment, like the roff command line.
You might also notice a reference to '$F'. This is necessary for us
to be compatible with an older roff command line format.