[pstricks] using postscript calc for length but not angle
Jon Joseph
josco.jon at gmail.com
Tue Apr 19 02:31:07 CEST 2011
Thanks Herbert. Works perfectly.
On Apr 18, 2011, 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. using postscript calc for length but not angle (Jon Joseph)
> 2. Re: using postscript calc for length but not angle (Herbert Voss)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 17 Apr 2011 12:54:25 -0500
> From: Jon Joseph <josco.jon at gmail.com>
> To: pstricks at tug.org
> Subject: [pstricks] using postscript calc for length but not angle
> Message-ID: <F73C95A9-12FF-424B-939C-DFD1667FA38E at gmail.com>
> Content-Type: text/plain; charset=us-ascii
>
> All: I would like to set a pnode at \sqrt{3} and 30 degrees and let postscript make the square root calculation for me. I'm looking for
> \pnode(1.732;30) but replace 1.732 with !3 sqrt. How do I do this without pnode thinking I want the cartesian point \pnode(1.732, 30)? Thanks, Jon.
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 17 Apr 2011 20:47:19 +0200
> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> To: Graphics with PSTricks <pstricks at tug.org>
> Subject: Re: [pstricks] using postscript calc for length but not angle
> Message-ID: <4DAB35B7.5020500 at FU-Berlin.DE>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Am 17.04.2011 19:54, schrieb Jon Joseph:
>> All: I would like to set a pnode at \sqrt{3} and 30 degrees and let postscript make the square root calculation for me. I'm looking for
>> \pnode(1.732;30) but replace 1.732 with !3 sqrt. How do I do this without pnode thinking I want the cartesian point \pnode(1.732, 30)? Thanks, Jon.
>
> \documentclass{minimal}
> \usepackage{pst-node} \SpecialCoor
> \begin{document}
>
> \psset{unit=2}
> \begin{pspicture}(2,2)\psgrid
> \end{pspicture}
>
> \pnode(! 3 sqrt 30 PtoC){A}\psdot(A)
>
> \end{document}
>
> Herbert
>
>
> ------------------------------
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
>
> End of PSTricks Digest, Vol 99, Issue 15
> ****************************************
More information about the PSTricks
mailing list