[pstricks] multido and rput

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sun Jan 25 09:30:20 CET 2009

Jon Joseph schrieb:
> I am trying to dynamically update the angle parameter in the rput  
> macro using multido. One attempt looks like the following:
> \SpecialCoor
> \begin{pspicture}(-3,-3)(3,3)
> \multido{\iX=-3+3}{8}
> {
> 	\multido{\iY=-3+3}{8}
> 	{
> 		\rput{! \iY \iX atan}(\iX, \iY){\psline(-.25,0)(.25,0)} % this is  
> what I want but doesn't work

As Michael already pointed out with the last message:

  \rput{! \iY\space \iX\space Atan}(\iX, \iY){\psline(-.25,0)(.25,0)}

otherwise you'll get in the PostScript output the \iY and \iX
not divided by a space, TeX will "eat" them before exporting it to PS


More information about the PSTricks mailing list