<div dir="ltr">I have a macro like: <br><br>\makeatletter<br>\def\psMyMacro{\pst@object{psMyMacro}}<br>\def\psMyMacro@i#1{\begin@SpecialObj\expandafter\psMyMacro@ii#1}<br>\def\psMyMacro@ii #1{\psMyMacro@iii#1}<br>\def\psMyMacro@iii#1 #2 #3 #4 #5 #6{%<br>
...<br> \rput(!#2 2 mul,#4){ ?MathematicalExpressionToEval? }%<br> ...<br> \@ifnextchar D{\psMyMacro@iii}{\end@SpecialObj}}<br>\makeatother<br>\begin{document} <br><br>Were < ?MathematicalExpressionToEval? > is what I want to display inside a graphic.<br>
As it can be seen, the evaluation of the expression for the x coordinate < !#2 2 mul > works well<br>But the RPN syntax doesn't seem to be evaluated. For example if I write:<br><br>\rput(!#2 2 mul, #4){ ! #6 20 mul 2 add }%<br>
<br>and lets say #2 = 10, # 4 = 5 and #6 = 4 then at coordinate (10,5) I get just : "! #6 20 mul 2 add " .<br>Although it should display 82 (4*20 + 2).<br>How can I evaluate this?<br><br>Thanks a lot<br></div>