[pstricks] AlgParser inside raw coordinates (! PS code)

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed Apr 30 21:27:48 CEST 2008


Christophe Jorssen schrieb:

> I don't understand why I get a postscript error with the felowing code.
> (expression) AlgParser cvx doesn't seem to put a number on the stack.
> Maybe I misunderstand something.
> 
> \listfiles
> \documentclass{article}
> \usepackage{pstricks}
> \begin{document}
> \SpecialCoor
> \def\lpar{(}
> \def\rpar{)}
> \begin{pspicture}[showgrid=true](5,5)
>   \psdot(!5 45 cos mul 5 45 sin mul)
>   \psdot(!
>     \lpar 5*cos\lpar 45\rpar\rpar\space AlgParser cvx 
>     \lpar 5*sin\lpar 45\rpar\rpar\space AlgParser cvx)

cvx make it _executable_, but does not execute it

   \psdot[linecolor=blue](!
     /X \lpar4*cos\lpar45\rpar\rpar\space AlgParser cvx def
     /Y \lpar4*sin\lpar45\rpar\rpar\space AlgParser cvx def
     X Y)%


   \psdot[linecolor=red](*{Pi 4 div} {sin(x)})

works also with the latest pstricks.

Herbert



More information about the PSTricks mailing list