Xref: utzoo comp.text:1548 comp.unix.questions:5674 comp.sys.mac:12810 comp.lang.postscript:228 Path: utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!hubcap!ncrcae!ncr-sd!hp-sdd!hplabs!sdcrdcf!CAM.UNISYS.COM!jonab From: jonab@CAM.UNISYS.COM (Jonathan P. Biggar) Newsgroups: comp.text,comp.unix.questions,comp.sys.mac,comp.lang.postscript Subject: Re: Embedding post-script images in troff text Message-ID: <401@sdcjove.CAM.UNISYS.COM> Date: 16 Feb 88 18:11:05 GMT References: <4594@venera.isi.edu> <901@ora.UUCP> <262@ticnj.UUCP> Reply-To: jonab@cam.unisys.com (Jonathan P. Biggar) Organization: UNiSYS R+D Distributed Architectures, Camarillo, CA Lines: 44 In article <262@ticnj.UUCP> ssl@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@cam.unisys.com