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.eduxiaofei@EINSTEIN.PHYSICS.BUFFALO.EDU (Xiaofei Wang) (05/11/91)
[Problem of ghostscript with showpage] This is a known bug. The fix has been posted on gnu.ghostscript.bug. It requires changes in C program and recompile the program. I have save all the info in a file but I did not fix the problem myself considering the fact the ghostscript 2.2 will be released around Hune 1, 1991. I solved the problem by changing ``showpage'' to ``copypage''. -- xiaofei@acsu.buffalo.edu / rutgers!ub!xiaofei / v118raqa@ubvms.bitnet