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

mluque5130 at aol.com mluque5130 at aol.com
Wed Apr 30 21:21:41 CEST 2008

This code works. But this is perhaps not the answer you want? It must be improved ...

\pstVerb{/Pi 3.14159 def
         /rpn {AlgParser cvx} def
         /xA (5*cos(Pi/4)) rpn def
         /yA (5*sin(Pi/4)) rpn def}
  \psdot(! xA  yA)




-----E-mail d'origine-----
De : Christophe Jorssen <christophe.jorssen at free.fr>
A : pstricks at tug.org
Envoyé le : Mercredi, 30 Avril 2008 17:07
Sujet : [pstricks] AlgParser inside raw coordinates (! PS code)

Hello all,

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.

  \psdot(!5 45 cos mul 5 45 sin mul)
    \lpar 5*cos\lpar 45\rpar\rpar\space AlgParser cvx 
    \lpar 5*sin\lpar 45\rpar\rpar\space AlgParser cvx)

 *File List*
 article.cls    2005/09/16 v1.4f Standard LaTeX document class
  size10.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
pstricks.sty    2008/01/24 v0.37 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2008/04/14 v1.22 `PSTricks' (tvz)
pstricks.pro    2008/01/01 v. 1.03, PostScript prologue file (hv)
pst-dots.pro    2006/12/19 v. 2.00, PostScript prologue file (hv)
pst-algparser.pro    2008/01/01 v. 0.01, PostScript prologue file (hv)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)

Thanks in advance


PSTricks mailing list
PSTricks at tug.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20080430/9d440824/attachment.html 

More information about the PSTricks mailing list