farkas@eecg.toronto.edu (Keith I. Farkas) (05/11/91)
I am using version 2.1.1 of ghostscript to preview the postscript generated
by version 5.4.7 of dvips and I have a slight problem.
Background: My document contains some postscript generated by idraw -- i.e. I
use \psfig to input an idraw figure into the document. The idraw file
terminates with the postscript command "showpage" followed by "end".
The Problem: Ghostscript does not understand the "showpage" command. When
this point in the file is reached, ghostscript complains about showpage
being undefined and aborts the displaying of the file. When I comment
out this command, (i.e. the showpage), ghostscript happily displays the
whole file.
Analysis: Since ghostscript did not complain when asked to display the idraw
file alone, I exmained the "code" generated by dvips. In the dvips
output, all figures included with the \psfig command are surrounded by
the comments "%%BeginDocument" and "%%EndDocument", and the commands
"startTexFig" and "endTexFig".
Questions:
1. Could ghostscript be unhappy about a showpage command appearing
within a TexFig?
2. How, short of editing each file I want to preview, can I get
ghostscript to cooperate?
All suggestions would be greatly appreciated.
thanks.
-Keith
farkas@eecg.toronto.edu