> If you don't mind some additional changes (and want a nicer
> looking letter), you may want to modify your Fortran program
> to emit troff commands (troff is a text formatter like DCF)
> to make the letters and then postprocess the output file with
> troff or nroff.  troff/nroff will allow you to use all the features of
your
> printer, produce Postscript or PCL output, and generate a lot
> of useful other stuff.  There are macro packages included
> with troff (I'd suggest using the mm macros-- they're easy
> and well documented.)

In fact, here's a working example:

.LO AT "Personnel"
.WA "David Boyes" "CTO"
Sine Nomine Associates
43596 Blacksmith Square
Ashburn VA 20147
.WE
.LO SA "Dear Dr. Boyes:"
.LO RN "Job"
.IA "Applicant That's Me"
Wankel Rotary Engines Inc.
55 Camelot Highway
Camelot, MA 22777
.IE
.LT
.P
.P
Here is the text of my letter. Isn't it pretty?
.P
Second paragraph. You betcha.
.P
.FC "Sincerely,"
.SG

and the output in test.out after running this file through "nroff -mm
test.in > test.out":





                                       Sine Nomine Associates
                                       43596 Blacksmith Square
                                       Ashburn VA 20147
                                       December 5, 2001

                                       In reference to: Job


       Applicant That's Me

       Wankel Rotary Engines Inc.
       55 Camelot Highway
       Camelot, MA 22777

       ATTENTION: Personnel

       Dear Dr. Boyes:
       Here is the text of my letter. Isn't it pretty?

       Second paragraph, you betcha.


                                     Sincerely,



                                     David Boyes
                                     CTO

Reply via email to