[pstricks] Rendering modified arguments inside a macro

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sun Dec 13 09:22:39 CET 2009


Am 13.12.2009 00:44, schrieb Jorge Nto:
> I still don't understand where the mistake is. Instead of drawing the text
> it is drawing the PostScript code:
> (Even by setting the coordinates correctly):
> 
>  \rput(20,45){! #6 0.5 mul}%
> 
> This puts the text "! #6 0.5 mul" at the position 20, 45
> 
> Of course, for the coordinates of the position (inside parentheses) the RPN
> syntax works well, so the instruction:
> \rput(!#2 2 mul #4){Latex is cool }% would work well.

sure, the syntax of \rput is
\rput[pos]{angle}(x,y){text}

Only x,y can be an calculated expression when a preceeding ! is
detected. What do you want to do with the rput.
Please provide a _full_ minimal example.

Herbert


More information about the PSTricks mailing list