Article View: comp.text
Article #6480Postscript Pictures in Troff
From: h.vd.wetering
Date: Fri, 02 Jun 1989 10:33
Date: Fri, 02 Jun 1989 10:33
42 lines
1946 bytes
1946 bytes
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 #
# #
######################
Technical Details
Message-ID:
<396@tuewsd.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!cs.utexas.edu!uunet!mcvax!hp4nl!eutrc3!tuewsd!wstahwShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!cs.utexas.edu!uunet!mcvax!hp4nl!eutrc3!tuewsd!wstahw From: wstahw@tuewsd.UUCP (h.vd.wetering) Newsgroups: comp.text Subject: Postscript Pictures in Troff Keywords: postscript troff Message-ID: <396@tuewsd.UUCP> Date: 2 Jun 89 10:33:58 GMT Organization: Tech. Univ. Eindhoven, Neth. Lines: 42