smith@zeus.harvard.edu (Steven Smith) (03/22/91)
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%