[pstricks] Rendering modified arguments inside a macro
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Fri Dec 11 16:38:06 CET 2009
Am 11.12.2009 14:39, schrieb Jorge Nto:
> Were < ?MathematicalExpressionToEval? > is what I want to display inside a
> graphic.
> As it can be seen, the evaluation of the expression for the x coordinate <
> !#2 2 mul > works well
> But the RPN syntax doesn't seem to be evaluated. For example if I write:
>
> \rput(!#2 2 mul, #4){ ! #6 20 mul 2 add }%
\rput(!#2 2 mul #4){! #6 20 mul 2 add }%
^^^^^
in PostScript mode always without a comma
Herbert
>
> and lets say #2 = 10, # 4 = 5 and #6 = 4 then at coordinate (10,5) I get
> just : "! #6 20 mul 2 add " .
> Although it should display 82 (4*20 + 2).
> How can I evaluate this?
>
> Thanks a lot
>
>
>
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/
More information about the PSTricks
mailing list