Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ncar!hsdndev!husc6!husc6.harvard.edu!smith From: smith@zeus.harvard.edu (Steven Smith) Newsgroups: comp.lang.postscript Subject: Some problems using PostScript within TeX: Part I Message-ID: Date: 21 Mar 91 22:18:26 GMT Sender: news@husc6.harvard.edu Distribution: comp.lang.postscript Organization: Harvard Robotics Lab, Harvard University Lines: 56 Try as I might, I cannot successfully incorporate PostScript output from dvips within a TeX document (to be subsequently processed by dvips). Has anyone accomplished this feat? The following three tests yield identical results at our site: only the last paragraph and the page number are printed by our laser printer, i.e., only text following the PostScript insertion. The PostScript file input.ps was generated by converting a one page DVI file using dvips. I tried some simple experiments within PostScript, such as deleting the showpage command from dvips's /TeXDict macro within the file input.ps, but this did not alter the outcome described above in any of the three cases. I would appreciate any help or comments on the solution of this problem. Steven Smith %%%%%%%%%%%%%%%%%%%%%%%%%%%% Test One %%%%%%%%%%%%%%%%%%%%%%%%%%%% \input psfig A page of PostScript output from dvips: $$\psfig{figure=input.ps,width=2.125in}$$ The last paragraph on the page. \bye %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%% Test Two %%%%%%%%%%%%%%%%%%%%%%%%%%%% A page of PostScript output from dvips: $$\vbox to2.75in{\hbox to 2.125in{% \special{psfile="input.ps" hscale=25 vscale=25}\hss}\vss}$$ The last paragraph on the page. \bye %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%% Test Three %%%%%%%%%%%%%%%%%%%%%%%%%%%% \input epsf \epsfxsize=2.125in \epsfysize=2.75in A page of PostScript output from dvips: $$\epsfbox{input.ps}$$ The last paragraph on the page. \bye %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%