[texhax] A problem with dvips.

Rolf Turner r.turner at auckland.ac.nz
Tue Oct 11 23:56:56 CEST 2016


I recently "upgraded" my system.  Now I cannot create a pdf file from a 
LaTeX document which previously caused no trouble.  If I take an "old"
file "talk.ps" which was created (in the dim distant past) by "dvips 
talk" (after "talk.dvi" was created by running "latex talk" on 
"talk.tex" I can do

    ps2pdf talk.ps

and get a no-problem pdf file, talk.pdf.

However if I do

     dvips talk # Runs without generating any error messages.
     ps2pdf talk.ps

I get an error:

> Operand stack:
>
> Execution stack:
>    %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1977   1   3   %oparray_pop   1976   1   3   %oparray_pop   1960   1   3   %oparray_pop   1852   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
> Dictionary stack:
>    --dict:1198/1684(ro)(G)--   --dict:0/20(G)--   --dict:119/200(L)--   --dict:196/300(L)--   --dict:118/200(L)--
> Current allocation mode is local
> Last OS error: No such file or directory
> Current file position is 444444
> GPL Ghostscript 9.18: Unrecoverable error, exit code 1

If I rename the old ("working") talk.ps file, call it oldtalk.ps, run

     diff talk.ps oldtalk.ps

I get a huge (235 line) output, which means essentially nothing to me. I 
have attached this file, in case it means something to *somebody*.

I would appreciate it if someone could point me to a remedy for this 
problem.  I need to produce a *new* talk, on a different topic, whence
I cannot just use the old "talk.ps".

To forestall questions on the issue:  The talk is generated using the
powerdot document class which does not seem to play nicely with 
pdflatex.  So I cannot just do "pdflatex talk".  Psigh!

Thanks for any useful ideas.

cheers,

Rolf Turner

-- 
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
-------------- next part --------------
2c2
< %%Creator: dvips(k) 5.996 Copyright 2016 Radical Eye Software
---
> %%Creator: dvips(k) 5.993 Copyright 2013 Radical Eye Software
4c4
< %%CreationDate: Wed Oct 12 10:14:27 2016
---
> %%CreationDate: Sat Nov 23 16:17:09 2013
68c68
< % $Id: pstricks.pro 919 2014-05-19 18:42:47Z herbert $
---
> % $Id: pstricks.pro 845 2013-11-08 19:01:48Z herbert $
71c71
< %% Version 1.24, 2016/04/22
---
> %% Version 1.19, 2013/11/08
100d99
< /Log { dup 1e-20 lt { pop -1e30 }{ log } ifelse } def % control the log
124,127c123,124
< /PtoC { 2 copy cos mul 3 1 roll sin mul } def % Polar to Cartesian
< /PtoCab { dup cos 4 -1 roll mul 3 1 roll sin mul } def % Polar to Cartesian (Ellipse) a b phi-> x y 
< %/Rand { rand 4294967295 div } def		% a real random number
< /Rand { rand 2147483447 div } def		% a real random number between 0 and 1
---
> /PtoC { 2 copy cos mul 3 1 roll sin mul } def 	% Polar to Cartesian
> /Rand { rand 4294967295 div } def		% a real random number
210a208
> 
356a355
> 
803,895d801
< /CalcBezierSpline {%  Christoph Bersch
<   10 dict begin
<   /getX { Points exch 2 mul get } def
<   /getY { Points exch 2 mul 1 add get } def
<   /n Points length 1 sub 2 idiv def
<   /GetFirstControlPoints {
<     /x n array def
<     /tmp n array def
<     /b 2 def
<     x 0 rhs 0 get b div put
<     1 1 n 1 sub {
<       /i exch def
<       tmp i 1 b div dup 4 1 roll put
<       i n 1 sub lt { 4 }{ 3.5 } ifelse exch sub /b exch def
<       x i rhs i get x i 1 sub get sub b div put
<     } for
<     1 1 n 1 sub {
<       n exch sub
<       dup dup x exch 1 sub 2 copy 6 2 roll
<       get 3 1 roll tmp exch get
<       exch x exch get mul sub
<       put	
<     } for
<     x
<   } def
<   % 
<   n 1 eq {
<     0 getX 2 mul 1 getX add 3 div
<     0 getY 2 mul 1 getY add 3 div
<     exch dup 3 1 roll 2 mul 0 getX sub
<     exch dup 3 1 roll 2 mul 0 getY sub
<     [ 0 getX 0 getY 7 3 roll 1 getX 1 getY ] /outPoints exch def
<   } {
<     /outPoints 6 n mul 2 add array def
<     0 1 n {
<       dup dup 6 mul dup 1 add
<       outPoints exch 5 -1 roll getY put
<       outPoints exch 3 -1 roll getX put
<     } for
<     /rhs n array def
<     1 1 n 2 sub {
<       rhs exch dup dup getX 4 mul exch 1 add getX 2 mul add put
<     } for
<     rhs 0 0 getX 1 getX 2 mul add put
<     rhs n 1 sub dup getX 8 mul n getX add 2 div put
<     GetFirstControlPoints
<     1 1 n 2 sub {
<       rhs exch dup dup getY 4 mul exch 1 add getY 2 mul add put
<     } for
<     rhs 0 0 getY 1 getY 2 mul add put
<     rhs n 1 sub dup getY 8 mul n getY add 2 div put
<     GetFirstControlPoints
<     0 1 n 1 sub {
<       /i exch def
<       2 copy
<       i get outPoints 6 i mul 3 add 3 -1 roll put
<       i get outPoints 6 i mul 2 add 3 -1 roll put
<       2 copy
<       i n 1 sub lt {
<         i 1 add get i 1 add getY 2 mul exch sub outPoints 6 i mul 5 add 3 -1 roll put
<         i 1 add get i 1 add getX 2 mul exch sub outPoints 6 i mul 4 add 3 -1 roll put
<       }{
<         n 1 sub get n getY add 2 div outPoints 6 n 1 sub mul 5 add 3 -1 roll put
<         n 1 sub get n getX add 2 div outPoints 6 n 1 sub mul 4 add 3 -1 roll put
<       } ifelse
<     } for
<     pop pop
<   } ifelse
<   outPoints
<   end
< } def
< /Spline {
<   /showpoints ED
<   counttomark 2 div dup cvi /n ED
<   n eq not { exch pop } if
<   ] /Points ED
<   n 1 gt {
<     CalcBezierSpline
<     mark exch aload pop
<     ArrowA
<     n 2 sub {
<       6 2 roll 4 2 roll curveto
<     } repeat
<     6 2 roll 4 2 roll ArrowB curveto
<   } if
< } def
< /OpenSymbolSpline {
<   Spline
<   0.1 setflat
<   /Shift Symbol stringwidth pop 2 div def 
<   CurvePath 
< } def
< %
1106,1108d1011
< %
< /isbool { type (booleantype) cvn eq } def
< %
1110d1012
<   dup isbool { /MoveToStart ED }{ /MoveToStart false def }ifelse  % false or true
1115,1117c1017
<   scale 
<   MoveToStart { 0 0 moveto 1 0 rmoveto } if  % move to the start position
<   0 0 1 5 3 roll arc 
---
>   scale 0 0 1 5 3 roll arc 
1267a1168,1181
> /BeginOL { 
>   dup (all) eq exch TheOL eq or 
>     { IfVisible not { Visible /IfVisible true def } if } 
>     { IfVisible { Invisible /IfVisible false def } if } ifelse 
> } def
> %
> /InitOL { 
>   /OLUnit [ 3000 3000 matrix defaultmatrix dtransform ] cvx def
>   /Visible { CP OLUnit idtransform T moveto } def 
>   /Invisible { CP OLUnit neg exch neg exch idtransform T moveto } def 
>   /BOL { BeginOL } def
>   /IfVisible true def 
> } def
> %
1275c1189
< % $Id: pst-algparser.pro 919 2014-05-19 18:42:47Z herbert $
---
> % $Id: pst-algparser.pro 801 2013-07-09 18:10:41Z herbert $
1278c1192
< %% Version 0.07, 2014/08/01
---
> %% Version 0.04, 2011/10/21
1286,1287d1199
< %currentdict /Pi known not { /Pi 3.14159265359 def } if
< %
1289d1200
< /I2P { AlgParser cvx exec } def  % Infix to Postfix
1584c1495
<   { /ExpressionVector ExpressionVector aload length 3.1415926 /div cvx 180 /mul cvx 5 -1 roll 4 add
---
>   { /ExpressionVector ExpressionVector aload length Pi /div cvx 180 /mul cvx 5 -1 roll 4 add
1631c1542
< /Derive {
---
> /Derive {%
1848,1851d1758
< /EvalFunc_floor {%
<   PreCommonFunc
<   {  dup 0 eq { (1) StrConcat } { 1 sub } ifelse (/\() StrConcat 5 index StrConcat AddClPar } if
<   PostCommonFunc } def
2839,2854c2746,2771
< }if 0 setgray}N/@beginspecial{SDict begin/SpecialSave save N gsave
< normalscale currentpoint TR @SpecialDefaults count/ocount X/dcount
< countdictstack N}N/@setspecial{CLIP 1 eq{newpath 0 0 moveto hs 0 rlineto
< 0 vs rlineto hs neg 0 rlineto closepath clip}if ho vo TR hsc vsc scale
< ang rotate rwiSeen{rwi urx llx sub div rhiSeen{rhi ury lly sub div}{dup}
< ifelse scale llx neg lly neg TR}{rhiSeen{rhi ury lly sub div dup scale
< llx neg lly neg TR}if}ifelse CLIP 2 eq{newpath llx lly moveto urx lly
< lineto urx ury lineto llx ury lineto closepath clip}if/showpage{}N
< /erasepage{}N/setpagedevice{pop}N/copypage{}N newpath}N/@endspecial{
< count ocount sub{pop}repeat countdictstack dcount sub{end}repeat
< grestore SpecialSave restore end}N/@defspecial{SDict begin}N
< /@fedspecial{end}B/li{lineto}B/rl{rlineto}B/rc{rcurveto}B/np{/SaveX
< currentpoint/SaveY X N 1 setlinecap newpath}N/st{stroke SaveX SaveY
< moveto}N/fil{fill SaveX SaveY moveto}N/ellipse{/endangle X/startangle X
< /yrad X/xrad X/savematrix matrix currentmatrix N TR xrad yrad scale 0 0
< 1 startangle endangle arc savematrix setmatrix}N end
---
> }if 0 setgray}N/psfts{S 65781.76 div N}N/startTexFig{/psf$SavedState
> save N userdict maxlength dict begin/magscale true def normalscale
> currentpoint TR/psf$ury psfts/psf$urx psfts/psf$lly psfts/psf$llx psfts
> /psf$y psfts/psf$x psfts currentpoint/psf$cy X/psf$cx X/psf$sx psf$x
> psf$urx psf$llx sub div N/psf$sy psf$y psf$ury psf$lly sub div N psf$sx
> psf$sy scale psf$cx psf$sx div psf$llx sub psf$cy psf$sy div psf$ury sub
> TR/showpage{}N/erasepage{}N/setpagedevice{pop}N/copypage{}N/p 3 def
> @MacSetUp}N/doclip{psf$llx psf$lly psf$urx psf$ury currentpoint 6 2 roll
> newpath 4 copy 4 2 roll moveto 6 -1 roll S lineto S lineto S lineto
> closepath clip newpath moveto}N/endTexFig{end psf$SavedState restore}N
> /@beginspecial{SDict begin/SpecialSave save N gsave normalscale
> currentpoint TR @SpecialDefaults count/ocount X/dcount countdictstack N}
> N/@setspecial{CLIP 1 eq{newpath 0 0 moveto hs 0 rlineto 0 vs rlineto hs
> neg 0 rlineto closepath clip}if ho vo TR hsc vsc scale ang rotate
> rwiSeen{rwi urx llx sub div rhiSeen{rhi ury lly sub div}{dup}ifelse
> scale llx neg lly neg TR}{rhiSeen{rhi ury lly sub div dup scale llx neg
> lly neg TR}if}ifelse CLIP 2 eq{newpath llx lly moveto urx lly lineto urx
> ury lineto llx ury lineto closepath clip}if/showpage{}N/erasepage{}N
> /setpagedevice{pop}N/copypage{}N newpath}N/@endspecial{count ocount sub{
> pop}repeat countdictstack dcount sub{end}repeat grestore SpecialSave
> restore end}N/@defspecial{SDict begin}N/@fedspecial{end}B/li{lineto}B
> /rl{rlineto}B/rc{rcurveto}B/np{/SaveX currentpoint/SaveY X N 1
> setlinecap newpath}N/st{stroke SaveX SaveY moveto}N/fil{fill SaveX SaveY
> moveto}N/ellipse{/endangle X/startangle X/yrad X/xrad X/savematrix
> matrix currentmatrix N TR xrad yrad scale 0 0 1 startangle endangle arc
> savematrix setmatrix}N end
4653a4571
> /UniqueID 5000791 def
4890a4809
> /UniqueID 5096649 def
5127a5047
> /UniqueID 5087383 def
5375a5296
> /UniqueID 5096651 def
5626a5548
> /UniqueID 5087392 def
5869a5792
> /UniqueID 5000794 def
6179a6103
> /UniqueID 5087386 def


More information about the texhax mailing list