Richard A. Bilonick wrote:

Steven Homolya wrote:

On Tue, 19 Nov 2002 08:04, Richard A. Bilonick wrote:

I have a 20 page document that I was previously working on using LyX
1.1.6fix3. It would print just fine - all 20 pages via postscript. If I
tried to view it through pdf, it would screw up some figure captions.
Using ps2pdf12 or ps2pdf13 manually rather than using ps2pdf seemed to
fix the problem. Now in 1.2.1, only the first 8 pages will print - EVEN
THOUGH all 20 pages show quite nicely in gv. If I try to print directly
from gv, again only the first 8 pages will print.

I can send the document if someone needs it to help diagnose the problem.

This is a much more serious problem because I need to be able to print
the documents and make them into pdf's. If I can't do that, there is not
much point to using LyX.

Why can gv view the entire document but not print it???

Rick B.

If it's a postscript printer, then there is probably some non-standard/printer-incompatible postscript in your output --- this is why the latest is not always the greatest. Star/OpenOffice have serious problems here.

With latex, I found that ps printers (HP lasers) can't handle some compressed image formats (png, jpeg) that have been converted to eps (with ImageMagik "convert" or the Gimp). So I always convert images to xpm before converting to eps.

Steve


This is not a printer problem. This appears to be a LyX and/or ghostscript problem. Either ghostscript has a bug or LyX is not producing correct postscript. Here is what ghostscript does with the Postscript file created by LyX:

[lrb0r22@rbilonick Reports]$ ghostscript scamp.pm2.5.accuracy.precision.2.ps
GNU Ghostscript 7.05 (2002-04-22)
Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusRomNo9L-Regu font from /usr/share/fonts/default/Type1/n021003l.pfb... 2410668 1054050 1642520 347466 0 done.
Loading NimbusSanL-Regu font from /usr/share/fonts/default/Type1/n019003l.pfb... 2785628 1379928 1662616 358654 0 done.
Using NimbusSansL-Regu font for NimbusSanL-Regu.
Loading NimbusSanL-Bold font from /usr/share/fonts/default/Type1/n019004l.pfb... 3090216 1604851 1964056 608009 2 done.
Loading NimbusSanL-ReguItal font from /usr/share/fonts/default/Type1/n019023l.pfb... 3187264 1702948 1984152 515525 2 done.
Loading NimbusSanL-BoldItal font from /usr/share/fonts/default/Type1/n019024l.pfb... 3284312 1747373 1984152 498708 2 done.
Loading StandardSymL font from /usr/share/fonts/default/Type1/s050000l.pfb... 3324504 1788431 1984152 502807 2 done.
>>showpage, press <return> to continue<<

Loading NimbusSanL-Bold font from /usr/share/fonts/default/Type1/n019004l.pfb... 3090216 1556202 1964056 506688 2 done.
Loading NimbusSanL-ReguItal font from /usr/share/fonts/default/Type1/n019023l.pfb... 3187264 1654292 1964056 511852 2 done.
Loading NimbusSanL-BoldItal font from /usr/share/fonts/default/Type1/n019024l.pfb... 3284312 1752535 1984152 520348 2 done.
Loading StandardSymL font from /usr/share/fonts/default/Type1/s050000l.pfb... 3324504 1793113 1984152 524175 2 done.
>>showpage, press <return> to continue<<

>>showpage, press <return> to continue<<

>>showpage, press <return> to continue<<

>>showpage, press <return> to continue<<

Loading NimbusSanL-Bold font from /usr/share/fonts/default/Type1/n019004l.pfb... 3090216 1556202 1964056 511218 2 done.
Loading NimbusSanL-ReguItal font from /usr/share/fonts/default/Type1/n019023l.pfb... 3187264 1654292 1984152 519710 2 done.
Loading NimbusSanL-BoldItal font from /usr/share/fonts/default/Type1/n019024l.pfb... 3284312 1752535 1984152 524878 2 done.
Loading StandardSymL font from /usr/share/fonts/default/Type1/s050000l.pfb... 3324504 1793113 1984152 528705 2 done.
>>showpage, press <return> to continue<<

Loading NimbusSanL-Bold font from /usr/share/fonts/default/Type1/n019004l.pfb... 3090216 1556202 1964056 511854 2 done.
Loading NimbusSanL-ReguItal font from /usr/share/fonts/default/Type1/n019023l.pfb... 3187264 1654292 1984152 520346 2 done.
Loading NimbusSanL-BoldItal font from /usr/share/fonts/default/Type1/n019024l.pfb... 3284312 1752535 1984152 525514 2 done.
Loading StandardSymL font from /usr/share/fonts/default/Type1/s050000l.pfb... 3324504 1793113 1984152 529341 2 done.
>>showpage, press <return> to continue<<

Loading NimbusSanL-Bold font from /usr/share/fonts/default/Type1/n019004l.pfb... 3090216 1556202 1964056 512111 2 done.
Loading NimbusSanL-ReguItal font from /usr/share/fonts/default/Type1/n019023l.pfb... 3187264 1654292 1984152 520603 2 done.
Loading NimbusSanL-BoldItal font from /usr/share/fonts/default/Type1/n019024l.pfb... 3284312 1752535 1984152 525771 2 done.
Loading StandardSymL font from /usr/share/fonts/default/Type1/s050000l.pfb... 3324504 1793113 1984152 529598 2 done.
>>showpage, press <return> to continue<<

Loading NimbusSanL-Bold font from /usr/share/fonts/default/Type1/n019004l.pfb... 3090216 1556202 1964056 513462 2 done.
Loading NimbusSanL-ReguItal font from /usr/share/fonts/default/Type1/n019023l.pfb... 3187264 1654292 1984152 521954 2 done.
Loading NimbusSanL-BoldItal font from /usr/share/fonts/default/Type1/n019024l.pfb... 3284312 1752535 1984152 527122 2 done.
Loading StandardSymL font from /usr/share/fonts/default/Type1/s050000l.pfb... 3324504 1793113 1984152 530949 2 done.
Error: /syntaxerror in -file-
Operand stack:
0 1.0
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
Dictionary stack:
--dict:1049/1123(ro)(G)-- --dict:0/20(G)-- --dict:91/200(L)-- --dict:131/300(L)-- --dict:66/200(L)--
Current allocation mode is local
Current file position is 167002
GNU Ghostscript 7.05: Unrecoverable error, exit code 1
[lrb0r22@rbilonick Reports]$

Neither ghostscript nor the HP Postscript printer can interpret the LyX Postscript output. ps2pdf also produces errors probably because it uses ghostscript:

[lrb0r22@rbilonick Reports]$ ps2pdf scamp.pm2.5.accuracy.precision.2.ps
Error: /syntaxerror in -file-
Operand stack:
0 1.0
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
Dictionary stack:
--dict:1052/1123(ro)(G)-- --dict:0/20(G)-- --dict:91/200(L)-- --dict:131/300(L)-- --dict:66/200(L)--
Current allocation mode is local
Current file position is 167002
GNU Ghostscript 7.05: Unrecoverable error, exit code 1


For some reason, gv can view the Postscript generated by LyX but it is NOT printable by ghostscript or real Postscript interpreter.

This is a serious problem. I have no way of using this document now that I have input it into 1.2.1 and output. I imagine that 1.1.6fix3 won't be able to input the LyX document.

Rick B.





I was wrong about gv. It will display 19 of the 20 pages. It won't display page 9 which appears to be the source of the problem. Page 9 is similar to pages 8 and 10 - each page contains a graph in landscape mode. I can view the eps graph file that's on page 9 separately in gv. When viewing the LyX Postscript file, gv gets as far as the caption (Figure 6) for page 9 and then spits out the same error message as ghostview and ps2pdf.

Rick B.


Reply via email to