[pstricks] PSTricks Digest, Vol 72, Issue 28
Jon Joseph
jonjoseph at charter.net
Sun Jan 25 16:51:57 CET 2009
Thanks guys. Worked beautifully. I had the \space in many of my
attempts. It was the capital A Atan command that I needed. Thanks
again. Jon
On Jan 25, 2009, at 5:00 AM, pstricks-request at tug.org wrote:
> Send PSTricks mailing list submissions to
> pstricks at tug.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://tug.org/mailman/listinfo/pstricks
> or, via email, send a message with subject or body 'help' to
> pstricks-request at tug.org
>
> You can reach the person managing the list at
> pstricks-owner at tug.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of PSTricks digest..."
>
>
> Today's Topics:
>
> 1. rput (Jon Joseph)
> 2. Re: rput (Michael Sharpe)
> 3. multido and rput (Jon Joseph)
> 4. Re: multido and rput (Herbert Voss)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 24 Jan 2009 17:36:16 -0600
> From: Jon Joseph <jonjoseph at charter.net>
> Subject: [pstricks] rput
> To: pstricks at tug.org
> Message-ID: <3D29E295-224A-45A3-8161-2B1B7910307D at charter.net>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> I am trying to use a combination of multido and rput to create a
> variable angle:
>
> \SpecialCoor
> \multido{\iX=-3+3}{9}
> {
> \multido{\iY=-3+3}{9}
> {
> rput{! \iY \iX atan}(0,0){Some text}
> }
> }
>
> The angle specification fails. Any ideas on how to get this to work?
> Thanks. Jon
>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 24 Jan 2009 17:01:51 -0800
> From: Michael Sharpe <msharpe at ucsd.edu>
> Subject: Re: [pstricks] rput
> To: Graphics with PSTricks <pstricks at tug.org>
> Cc: Michael Sharpe <msharpe at ucsd.edu>
> Message-ID: <6C126F44-048C-4D44-9812-A1B2787C39D9 at ucsd.edu>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
>
> On Jan 24, 2009, at 3:36 PM, Jon Joseph wrote:
>
>> \multido{\iX=-3+3}{9}
>> {
>> \multido{\iY=-3+3}{9}
>> {
>> rput{! \iY \iX atan}(0,0){Some text}
>> }
>> }
>
> Try instead
>
> \multido{\iX=-3+3}{9}
> {
> \multido{\iY=-3+3}{9}
> {
> \rput{!\iY\space \iX\space Atan }(0,0){Some text}
> }
> }
>
> You need Atan, not atan, to get around a PostScript error in the case
> 0 0. You need \space to insert a space in the output to PS.
>
> Michael
>
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 24 Jan 2009 19:30:17 -0600
> From: Jon Joseph <jonjoseph at charter.net>
> Subject: [pstricks] multido and rput
> To: pstricks at tug.org
> Message-ID: <62F4F753-6069-4DF8-AB28-4E96EFD68FB0 at charter.net>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> 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
> \rput{\iY}(\iX, \iY){\psline(-.25,0)(.25,0)} % this works but not
> what I want
> \rput{ ! 2 3 atan}(\iX, \iY){\psline(-.25,0)(.25,0)} % this also
> works but not what I want
> }
> }
> \end{pspicture}
>
>
> ------------------------------
>
> Message: 4
> Date: Sun, 25 Jan 2009 09:30:20 +0100
> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> Subject: Re: [pstricks] multido and rput
> To: Graphics with PSTricks <pstricks at tug.org>
> Message-ID: <497C231C.7050409 at FU-Berlin.DE>
> Content-Type: text/plain; charset=ISO-8859-1
>
> 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
>
> Herbert
>
>
> ------------------------------
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
>
> End of PSTricks Digest, Vol 72, Issue 28
> ****************************************
More information about the PSTricks
mailing list