[pstricks] computing coordinates

Nitecki, Zbigniew H. Zbigniew.Nitecki at tufts.edu
Wed May 29 23:17:15 CEST 2013


Perfect!  Thanks…just what I needed.  (I also had a response from Leon Free--thanks, but I think this is really the right way to go (if you can remember the syntax).
On May 29, 2013, at 16:58, Juergen Gilg wrote:

Dear Ziggy,

I know that
\multido{\rx=0.0+0.2}{11}{\psline(\rx,-\rx)(2+\rx,-\rx)}
doesn't work, because postscript gets confused by "2+\rx".


try:

\multido{\rx=0.0+0.2}{11}{\psline(!\rx\space \rx\space neg)(!\rx\space 2 add \rx\space neg)}

This should do the wanted. With the "!" you tell PSTricks to use the PS notation. PS notation doesn't have a "+" -- you use "add" instead in Reverse Polish Notation.

Hope this helps!

Regards,

Jürgen

_______________________________________________
PSTricks mailing list
PSTricks at tug.org<mailto:PSTricks at tug.org>
http://tug.org/mailman/listinfo/pstricks
archive: http://www.tug.org/pipermail/pstricks/


Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155

telephones:
Office    (617)627-3843
Dept.    (617)627-3234
Dept. fax    (617)627-3966
http://www.tufts.edu/~znitecki/







More information about the PSTricks mailing list