Embedding post-script images in troff text

Jonathan P. Biggar jonab at CAM.UNISYS.COM
Wed Feb 17 04:11:05 AEST 1988


In article <262 at ticnj.UUCP> ssl at ticnj.UUCP (Steven S. Levinn) writes:
>How do you include uploaded pictures from the mac in your troff document?
>I upload (clover-F output) and try to include the files using psfig macros.
>I don't understand the mac Postscript (output from macdraw or a screen sweep
>from macterm for example) enough to include the proper %%BoundingBox info.
>I'm not sure it would work even if I did.
>Any pictures I include seems to eliminate
>(or at least not print) any output before the last picture.
>If any of you have sucessfully included pictures from the mac in your
>troff docs please give me a call or send mail. I will summarize
>any info I get.
>
>For handwritten postscript the psfig macros work just great.  They
>scale, allocate the correct amount of space and correctly
>work like any troff pre-processor.

1) Get a copy of the Mac LaserPrep uploaded to your unix system using
   clover-K instead of clover-F.

2) Edit the LaserPrep file and make two changes:
   a) strip out the definitions of stretch and smooth that are
      defined using eexec.  I have not figured out how to modify the
      LaserPrep so that these can remain.  If your postscript printer
      already has the LaserPrep downloaded, then you will have no problem.
      Otherwise, you might have to turn off smoothing.

   b) find the definitions of "bigs" and "smalls".  They will be
      defined as an array of 9 entries, some of which are the word
      "lnop".  Change them so that all 9 entries are just "lnop".
      This removes the code in the LaserPrep that fiddles with the
      page size definitions and the default matrix.

   Also strip out the postscript for the figure you were printing when
   you used clover-K.

3) Include the LaserPrep file in your document via:

.F+
file LaserPrep global;
.F-

before the first figure.

Jon Biggar
jonab at cam.unisys.com



More information about the Comp.unix.questions mailing list