Luis Sequeira lfsequeira at gmail.com
Sun Sep 13 16:45:32 CEST 2009

> Dear members,
> I sometimes use the TeX+DVI script to compile sources with pstricks
> codes and sometimes but not for all my documents the script failed to
> produce the pdf file.
> Here is the end of the Console Log when it failed :
> ### ps2pdf14 /tmp/altpdflatex.92665-1252739587/BacSSpecialite-2.ps /
> tmp/altpdflatex.92665-1252739587/BacSSpecialite-2.pdf
> Error: /undefined in MnewTOold
> Operand stack:
> Execution stack:
>    %interp_exit   .runexec2   --nostringval--   --nostringval--   --
> nostringval--   2   %stopped_push   --nostringval--   --
> nostringval--   --nostringval--   false   1   %stopped_push   1862
> 1   3   %oparray_pop   1861   1   3   %oparray_pop   1845   1   3
> %oparray_pop   1739   1   3   %oparray_pop   --nostringval--
> %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --
> nostringval--   2   %stopped_push   --nostringval--   --
> nostringval--   --nostringval--   --nostringval--   --nostringval--
> Dictionary stack:
>    --dict:1150/1684(ro)(G)--   --dict:0/20(G)--   --dict:115/200
> (L)--   --dict:203/300(L)--   --dict:92/200(L)--   --dict:50/400
> (L)--   --dict:0/10(L)--   --dict:92/200(L)--   --dict:96/200(L)--
> Current allocation mode is local
> Last OS error: 2
> Current file position is 790401
> GPL Ghostscript 8.70: Unrecoverable error, exit code 1
> ### FAILED to generate /tmp/altpdflatex.92665-1252739587/
> BacSSpecialite-2.pdf ()
> Could someone explain me what does that means ? Is it a TeXShop error,
> a TeX error or a Ghostscript error ?
> I have TeXLive 2009 installed with all the latest updates and use
> TeXShop 2.28.
> I join the complete log.
> Thanks
> Jean-Claude DE SOZA

This is a Ghostscript error.
It happens because some pstricks command that you have input, while  
correct as far as TeX is concerned, produces some wrong postscript code.
Consider for example what happens if you input

      \psplot{-1}{2}{x sqrt}

This is perfectly valid pstricks TeX code, but the postscript engine  
is going to be asked to plot the square root function for negative  
real numbers; in this case an error similar to the one you described  
will happen.

I suggest that you selectively comment out some your pstricks code,  
and zero in on the culprit. It may not be apparent at first what the  
error is, but trust me, it is there...

(If you need more assistance, feel free to email me your document off- 
list; I am willing to have a look at it)

Luis Sequeira

More information about the macostex-archives mailing list