[pstricks] pstricks error?

Herbert Voss Herbert.Voss at FU-Berlin.DE
Thu Jan 15 09:47:04 CET 2009


Poul Riis schrieb:

> Ghostview cannot show page 2 in the example attached, unless I introduce
> some \newpage commands. Why?
> 
> I regret that it's in Danish and that it's somewhat bigger than a minimal
> example....

[ ... ]
\psset{unit=1cm}
\pstVerb{/ee 2.7182818285 def {/yy exch def /xx exch def yy 2 mul neg ee
  exch exp xx 1 add mul} /dydx exch def}
\begin{pspicture}(-3.25,-2.25)(3.5,2.5)
\psaxes[ticksize=0 -3pt]{->}(0,0)(-3.25,-2.25)(3.5,2.5)
[ ... ]

pstVerb writes its argument into the ps output and this is _local_ to
the current page. In your example the following PSTricks image is put
on the next page, the reason why the definitions of \pstVerb are not
known to the PSTricks code. Put the \pstVerb into the pspicture-
envoronment and it will work. Then it is written into the PS output
after the pagebreak.


[ ... ]
\psset{unit=1cm}
\begin{pspicture}(-3.25,-2.25)(3.5,2.5)
\pstVerb{/ee 2.7182818285 def {/yy exch def /xx exch def yy 2 mul neg ee
exch exp xx 1 add mul} /dydx exch def}
\psaxes[ticksize=0 -3pt]{->}(0,0)(-3.25,-2.25)(3.5,2.5)
[ ... ]


Herbert


More information about the PSTricks mailing list