[comp.text] Postscript Pictures in Troff

wstahw@tuewsd.UUCP (h.vd.wetering) (06/02/89)

A troff puzzle:

What i want :
              Include postscript files as illustration in my documents.
What i do:
              I define  the macro
                .de f0		
                .KF
		.cf \\$1
                .sp \\$2
                .KE
                ..
              and use it in my troff text as follows.
                .f0 <picture file name> <vertical size>
              A picture file has the following format
                %PB
                <some postscript>
                PE
                .
             Psdit understands this format.
What i get:
             The picture appears on paper but at the wrong place!
             It appears exactly at the spot where .f0 was called. 
             Hence, .KF has no effect on the position of the picture!

What should i do ?
             I know .KF uses a diversion. And from the above we can
             savely conclude that this diversion has no effect on 
             a file included with .cf.

Please mail your solutions or suggestions directly to wstahw@eutrc3.
I will post the final solution.


                                          ######################
Huub van de Wetering                      # Sometimes a cigar, #
Eindhoven University of Technology        # is just a cigar.   #
The Netherlands                           #                    #
uucp:   wstahw@eutrc3                     # Sigmund Freud      #
                                          #                    #
                                          ######################