<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Blagodarq, ama e za daskali po profesionalna podgotowka.</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR><BR> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: "pstricks-request@tug.org" <pstricks-request@tug.org><BR>To: pstricks@tug.org<BR>Sent: Thursday, June 19, 2008 12:45:48 AM<BR>Subject: PSTricks Digest, Vol 65, Issue 22<BR><BR>Send PSTricks mailing list submissions to<BR> <A href="mailto:pstricks@tug.org" ymailto="mailto:pstricks@tug.org">pstricks@tug.org</A><BR><BR>To subscribe or unsubscribe via the World Wide Web, visit<BR> <A href="http://tug.org/mailman/listinfo/pstricks" target=_blank>http://tug.org/mailman/listinfo/pstricks</A><BR>or, via email, send a message with subject or body 'help' to<BR> <A href="mailto:pstricks-request@tug.org" ymailto="mailto:pstricks-request@tug.org">pstricks-request@tug.org</A><BR><BR>You can reach the person managing the list at<BR> <A href="mailto:pstricks-owner@tug.org"
ymailto="mailto:pstricks-owner@tug.org">pstricks-owner@tug.org</A><BR><BR>When replying, please edit your Subject line so it is more specific<BR>than "Re: Contents of PSTricks digest..."<BR><BR><BR>Today's Topics:<BR><BR> 1. Re: Testing a number (John Smith)<BR> 2. Re: conceptual question for pst-optexp (Christoph Bersch)<BR> 3. Re: conceptual question for pst-optexp (Herbert Voss)<BR> 4. Re: [Fwd: CTAN package update: pst-func] (Jean-C?me Charpentier)<BR> 5. \psDEBUG in pstricks-add (John Smith)<BR> 6. Re: \psDEBUG in pstricks-add (Herbert Voss)<BR> 7. Re: \psDEBUG in pstricks-add (Christoph Bersch)<BR> 8. Re: \psDEBUG in pstricks-add (John Smith)<BR> 9. pst-solides3d (Herbert Voss)<BR><BR><BR>----------------------------------------------------------------------<BR><BR>Message: 1<BR>Date: Wed, 18 Jun 2008 10:26:43 +0000<BR>From: John Smith <<A href="mailto:chessfan123@hotmail.com"
ymailto="mailto:chessfan123@hotmail.com">chessfan123@hotmail.com</A>><BR>Subject: Re: [pstricks] Testing a number<BR>To: Graphics with PSTricks <<A href="mailto:pstricks@tug.org" ymailto="mailto:pstricks@tug.org">pstricks@tug.org</A>><BR>Message-ID: <<A href="mailto:BAY125-W4B97125F629A0C8F88045F8AB0@phx.gbl" ymailto="mailto:BAY125-W4B97125F629A0C8F88045F8AB0@phx.gbl">BAY125-W4B97125F629A0C8F88045F8AB0@phx.gbl</A>><BR>Content-Type: text/plain; charset="iso-8859-1"<BR><BR><BR><BR>To answer my own question, this works.<BR><BR>\def\test#1{\FPifzero{#1} 0 \else \testp{#1} \fi}\def\testp#1{\FPifpos{#1} 1 \else -1 \fi}It looks like FP has trouble with nested tests.<BR><BR><BR><BR>From: <A href="mailto:chessfan123@hotmail.comTo" ymailto="mailto:chessfan123@hotmail.comTo">chessfan123@hotmail.comTo</A>: <A href="mailto:pstricks@tug.orgDate" ymailto="mailto:pstricks@tug.orgDate">pstricks@tug.orgDate</A>: Wed, 18 Jun 2008 07:19:21 +0000Subject: Re:
[pstricks] Testing a number<BR><BR><BR>Herbert> Date: Wed, 18 Jun 2008 08:47:23 +0200> From: <A href="mailto:Herbert.Voss@FU-Berlin.DE" ymailto="mailto:Herbert.Voss@FU-Berlin.DE">Herbert.Voss@FU-Berlin.DE</A>> To: <A href="mailto:pstricks@tug.org" ymailto="mailto:pstricks@tug.org">pstricks@tug.org</A>> Subject: Re: [pstricks] Testing a number> > John Smith schrieb:> > Is there a way to test is a number is zero, positive or negative? I tried this using the FP package as follows.> > > > \def\test#1{\FPifzero{#1} 0 \else \FPifpos{#1} 1 \else -1 \fi \fi}> > > > It works if the number is positive or negative but gives a Tex error about an extra \fi if the input is zero.> > giv an example in which case do you need such a test. I want the macro to return numbers as follows. \test{0} -> 0\test{1.234} -> 1\test{-1.234} -> -1 I need to know the sign of the number because it influences whether I draw a
vector (if number is not equal to zero) and in which direction it points. Thanks.<BR><BR><A href="http://www.hotmail.com/" target=_blank>Hotmail</A> on your mobile. Never miss another e-mail with <BR>_________________________________________________________________<BR>Never miss another e-mail with Hotmail on your mobile.<BR><A href="http://www.livelife.ninemsn.com.au/article.aspx?id=343869" target=_blank>http://www.livelife.ninemsn.com.au/article.aspx?id=343869</A><BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: <A href="http://tug.org/pipermail/pstricks/attachments/20080618/5986bd18/attachment-0001.html" target=_blank>http://tug.org/pipermail/pstricks/attachments/20080618/5986bd18/attachment-0001.html</A> <BR><BR>------------------------------<BR><BR>Message: 2<BR>Date: Wed, 18 Jun 2008 13:13:13 +0200<BR>From: Christoph Bersch <<A href="mailto:usenet@bersch.net"
ymailto="mailto:usenet@bersch.net">usenet@bersch.net</A>><BR>Subject: Re: [pstricks] conceptual question for pst-optexp<BR>To: Graphics with PSTricks <<A href="mailto:pstricks@tug.org" ymailto="mailto:pstricks@tug.org">pstricks@tug.org</A>><BR>Message-ID: <<A href="mailto:4858EDC9.3090309@bersch.net" ymailto="mailto:4858EDC9.3090309@bersch.net">4858EDC9.3090309@bersch.net</A>><BR>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<BR><BR>Herbert Voss schrieb:<BR>> Christoph schrieb:<BR>> > Referring to this and to simplify the access to these nodes I want to<BR>> > define a macro that connects two components:<BR>> ><BR>> > \optBeam{compname1}{compname2}<BR>> ><BR>> > This is no problem, but I was thinking that it would be nice to allow<BR>> > using a node or coordinate pair instead of one compname:<BR>> ><BR>> >
\optBeam{(0,1)}{compname2}<BR>> > or<BR>> > \optBeam{compname1}{(4,4)}<BR>> ><BR>> > would then connect a node with a component. How can I implement such a<BR>> > macro. My TeX knowledge is still somewhat limited, so I need some help<BR>> > on how to do this best :-)<BR>> <BR>> this is way how pst-node works. Look for \ncline as an example.<BR>> With SpecialCoor all types are checked.<BR><BR>Hmm, the following small example does not work. It compiles but it does <BR>not draw the line<BR><BR>\listfiles<BR>\documentclass{article}<BR>\usepackage{pst-node}<BR>\SpecialCoor<BR>\begin{document}<BR>\begin{pspicture}(2,2)<BR>\ncline{0,0}{1,1}<BR>\end{pspicture}<BR>\end{document}<BR><BR>The files I use are the most recent ones:<BR><BR> *File List*<BR> article.cls 2005/09/16 v1.4f Standard LaTeX document class<BR> size10.clo 2005/09/16 v1.4f
Standard LaTeX file (size option)<BR>pst-node.sty 2006/01/01 package wrapper for pst-node.tex<BR>pstricks.sty 2008/01/24 v0.37 LaTeX wrapper for `PSTricks' (RN,HV)<BR>pstricks.tex 2008/06/17 v1.24 `PSTricks' (tvz)<BR> xcolor.sty 2005/12/21 v2.09 LaTeX color extensions (UK)<BR> color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive<BR> dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)<BR>pst-node.tex 2000/11/09 97 patch 11 `pst-node' (tvz)<BR> ***********<BR><BR>Do you know what is going wrong there?<BR><BR>Thank you,<BR>Christoph<BR><BR><BR>------------------------------<BR><BR>Message: 3<BR>Date: Wed, 18 Jun 2008 13:43:26 +0200<BR>From: Herbert Voss <<A href="mailto:Herbert.Voss@FU-Berlin.DE" ymailto="mailto:Herbert.Voss@FU-Berlin.DE">Herbert.Voss@FU-Berlin.DE</A>><BR>Subject: Re: [pstricks] conceptual
question for pst-optexp<BR>To: Graphics with PSTricks <<A href="mailto:pstricks@tug.org" ymailto="mailto:pstricks@tug.org">pstricks@tug.org</A>><BR>Message-ID: <<A href="mailto:4858F4DE.5090500@FU-Berlin.DE" ymailto="mailto:4858F4DE.5090500@FU-Berlin.DE">4858F4DE.5090500@FU-Berlin.DE</A>><BR>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<BR><BR>Christoph Bersch schrieb:<BR><BR>>> this is way how pst-node works. Look for \ncline as an example.<BR>>> With SpecialCoor all types are checked.<BR>> <BR>> Hmm, the following small example does not work. It compiles but it does <BR>> not draw the line<BR><BR>> Do you know what is going wrong there?<BR><BR>sorry I thought of \pcline but ...<BR>With a little modification ist is
possible:<BR><BR>\listfiles<BR>\documentclass{article}<BR>\usepackage{pst-node}<BR>\makeatletter<BR>\def\NCLine{\pst@object{NCLine}}<BR>\def\NCLine@i{\check@arrow{\NCLine@ii}}<BR>\def\NCLine@ii#1#2{%<BR> \pst@getcoor{#1}\pst@tempA<BR> \pst@getcoor{#2}\pst@tempB<BR> \begingroup<BR> \use@par<BR> \psline(!\pst@tempA\space \tx@UserCoor)(!\pst@tempB\space <BR>\tx@UserCoor)<BR> \endgroup<BR>}<BR>\makeatother<BR>\SpecialCoor<BR>\begin{document}<BR><BR>\begin{pspicture}[showgrid=true](2,2)<BR>\pnode(2,2){A}<BR>\NCLine[arrows=->]{0,0}{A}<BR>\NCLine{<-}{0,1}{A}<BR>\end{pspicture}<BR><BR>\end{document}<BR><BR><BR>Herbert<BR><BR><BR>------------------------------<BR><BR>Message: 4<BR>Date: Wed, 18 Jun 2008 14:21:31 +0200<BR>From: Jean-C?me Charpentier <<A href="mailto:jean-come.charpentier@wanadoo.fr" ymailto="mailto:jean-come.charpentier@wanadoo.fr">jean-come.charpentier@wanadoo.fr</A>><BR>Subject:
Re: [pstricks] [Fwd: CTAN package update: pst-func]<BR>To: Graphics with PSTricks <<A href="mailto:pstricks@tug.org" ymailto="mailto:pstricks@tug.org">pstricks@tug.org</A>><BR>Message-ID: <<A href="mailto:4858FDCB.8080106@wanadoo.fr" ymailto="mailto:4858FDCB.8080106@wanadoo.fr">4858FDCB.8080106@wanadoo.fr</A>><BR>Content-Type: text/plain; charset=ISO-8859-1<BR><BR>Herbert Voss a ?crit :<BR>> with thanks to jean-C\"ome Charpentier for Thomae's function...<BR><BR>With more thanks to Herbert than to Jean-C?me!<BR><BR>BTW Jean-C?me is Jean-C\^ome, not Jean-C\"ome :-)<BR><BR> Jean-C?me (then) Charpentier<BR><BR><BR><BR>------------------------------<BR><BR>Message: 5<BR>Date: Thu, 19 Jun 2008 06:40:58 +0000<BR>From: John Smith <<A href="mailto:chessfan123@hotmail.com" ymailto="mailto:chessfan123@hotmail.com">chessfan123@hotmail.com</A>><BR>Subject: [pstricks] \psDEBUG in pstricks-add<BR>To: <<A href="mailto:pstricks@tug.org"
ymailto="mailto:pstricks@tug.org">pstricks@tug.org</A>><BR>Message-ID: <<A href="mailto:BAY125-W4113AB87BFB12E36CCD896F8AA0@phx.gbl" ymailto="mailto:BAY125-W4113AB87BFB12E36CCD896F8AA0@phx.gbl">BAY125-W4113AB87BFB12E36CCD896F8AA0@phx.gbl</A>><BR>Content-Type: text/plain; charset="iso-8859-1"<BR><BR><BR>The lastest pstricks-add (2008-06-06) has this macro in it but it is not defined and hence produces an error.<BR><BR>Is there a way to fix this?<BR><BR>Thanks.<BR>_________________________________________________________________<BR>Never miss another e-mail with Hotmail on your mobile.<BR><A href="http://www.livelife.ninemsn.com.au/article.aspx?id=343869" target=_blank>http://www.livelife.ninemsn.com.au/article.aspx?id=343869</A><BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: <A href="http://tug.org/pipermail/pstricks/attachments/20080619/c0e8ce38/attachment-0001.html"
target=_blank>http://tug.org/pipermail/pstricks/attachments/20080619/c0e8ce38/attachment-0001.html</A> <BR><BR>------------------------------<BR><BR>Message: 6<BR>Date: Thu, 19 Jun 2008 09:12:18 +0200<BR>From: Herbert Voss <<A href="mailto:Herbert.Voss@FU-Berlin.DE" ymailto="mailto:Herbert.Voss@FU-Berlin.DE">Herbert.Voss@FU-Berlin.DE</A>><BR>Subject: Re: [pstricks] \psDEBUG in pstricks-add<BR>To: Graphics with PSTricks <<A href="mailto:pstricks@tug.org" ymailto="mailto:pstricks@tug.org">pstricks@tug.org</A>><BR>Message-ID: <<A href="mailto:485A06D2.5050209@FU-Berlin.DE" ymailto="mailto:485A06D2.5050209@FU-Berlin.DE">485A06D2.5050209@FU-Berlin.DE</A>><BR>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<BR><BR>John Smith schrieb:<BR>> The lastest pstricks-add (2008-06-06) has this macro in it but it is not defined and hence produces an error.<BR>> <BR>> Is there a way to fix this?<BR><BR>was my fault, forgot to
update pstricks.tex, which defines \psDEBUG<BR><A href="http://www.ctan.org/get/graphics/pstricks/base/generic/pstricks.tex" target=_blank>http://www.ctan.org/get/graphics/pstricks/base/generic/pstricks.tex</A><BR><BR>Herbert<BR><BR><BR>------------------------------<BR><BR>Message: 7<BR>Date: Thu, 19 Jun 2008 09:14:20 +0200<BR>From: Christoph Bersch <<A href="mailto:usenet@bersch.net" ymailto="mailto:usenet@bersch.net">usenet@bersch.net</A>><BR>Subject: Re: [pstricks] \psDEBUG in pstricks-add<BR>To: Graphics with PSTricks <<A href="mailto:pstricks@tug.org" ymailto="mailto:pstricks@tug.org">pstricks@tug.org</A>><BR>Message-ID: <<A href="mailto:485A074C.5040407@bersch.net" ymailto="mailto:485A074C.5040407@bersch.net">485A074C.5040407@bersch.net</A>><BR>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<BR><BR>John Smith schrieb:<BR>> The lastest pstricks-add (2008-06-06) has this macro in it but it is not <BR>> defined
and hence produces an error.<BR><BR>the \psDEBUG macro is defined in the latest pstricks version 1.24 <BR>(17.6.2008)<BR><BR>Christoph<BR><BR><BR>------------------------------<BR><BR>Message: 8<BR>Date: Thu, 19 Jun 2008 07:15:10 +0000<BR>From: John Smith <<A href="mailto:chessfan123@hotmail.com" ymailto="mailto:chessfan123@hotmail.com">chessfan123@hotmail.com</A>><BR>Subject: Re: [pstricks] \psDEBUG in pstricks-add<BR>To: Graphics with PSTricks <<A href="mailto:pstricks@tug.org" ymailto="mailto:pstricks@tug.org">pstricks@tug.org</A>><BR>Message-ID: <<A href="mailto:BAY125-W114F5C37F4951E37F196D6F8AA0@phx.gbl" ymailto="mailto:BAY125-W114F5C37F4951E37F196D6F8AA0@phx.gbl">BAY125-W114F5C37F4951E37F196D6F8AA0@phx.gbl</A>><BR>Content-Type: text/plain; charset="iso-8859-1"<BR><BR><BR>Thanks Herbert.> Date: Thu, 19 Jun 2008 09:12:18 +0200> From: <A href="mailto:Herbert.Voss@FU-Berlin.DE"
ymailto="mailto:Herbert.Voss@FU-Berlin.DE">Herbert.Voss@FU-Berlin.DE</A>> To: <A href="mailto:pstricks@tug.org" ymailto="mailto:pstricks@tug.org">pstricks@tug.org</A>> Subject: Re: [pstricks] \psDEBUG in pstricks-add> > John Smith schrieb:> > The lastest pstricks-add (2008-06-06) has this macro in it but it is not defined and hence produces an error.> > > > Is there a way to fix this?> > was my fault, forgot to update pstricks.tex, which defines \psDEBUG> <A href="http://www.ctan.org/get/graphics/pstricks/base/generic/pstricks.tex" target=_blank>http://www.ctan.org/get/graphics/pstricks/base/generic/pstricks.tex</A>> > Herbert> _______________________________________________> PSTricks mailing list> <A href="mailto:PSTricks@tug.org" ymailto="mailto:PSTricks@tug.org">PSTricks@tug.org</A>> <A href="http://tug.org/mailman/listinfo/pstricks"
target=_blank>http://tug.org/mailman/listinfo/pstricks</A><BR>_________________________________________________________________<BR>Never miss another e-mail with Hotmail on your mobile.<BR><A href="http://www.livelife.ninemsn.com.au/article.aspx?id=343869" target=_blank>http://www.livelife.ninemsn.com.au/article.aspx?id=343869</A><BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: <A href="http://tug.org/pipermail/pstricks/attachments/20080619/cde5750a/attachment-0001.html" target=_blank>http://tug.org/pipermail/pstricks/attachments/20080619/cde5750a/attachment-0001.html</A> <BR><BR>------------------------------<BR><BR>Message: 9<BR>Date: Thu, 19 Jun 2008 09:45:42 +0200<BR>From: Herbert Voss <<A href="mailto:Herbert.Voss@FU-Berlin.DE" ymailto="mailto:Herbert.Voss@FU-Berlin.DE">Herbert.Voss@FU-Berlin.DE</A>><BR>Subject: [pstricks] pst-solides3d<BR>To: Graphics with PSTricks <<A
href="mailto:pstricks@tug.org" ymailto="mailto:pstricks@tug.org">pstricks@tug.org</A>><BR>Message-ID: <<A href="mailto:485A0EA6.80401@FU-Berlin.DE" ymailto="mailto:485A0EA6.80401@FU-Berlin.DE">485A0EA6.80401@FU-Berlin.DE</A>><BR>Content-Type: text/plain; charset="utf-8"<BR><BR>Hi all,<BR>pstricks-add definies the macro \psPie (see pp 8-9 of<BR><A href="http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pstricks-add/pstricks-add-doc.pdf" target=_blank>http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pstricks-add/pstricks-add-doc.pdf</A><BR>I tried this also for three dimensional pies, but<BR>pst-3dplot doesn't support hidden surfaces, which makes<BR>it impossible to define a pie which can have single<BR>outraged parts. A simple example is attached, which works<BR>in fact of only two pieces. The macro is called as<BR><BR>\psPie[<options>]%<BR> {comma separated value list}% the data<BR> {comma separated value
list}% outraged pieces<BR> {radius}<BR><BR>for the options see the documentation. However, I think<BR>it must be possible to have a 3d solution with pst-solides3d<BR>with \psPieIIID and the same syntax. Can you provide such<BR>a macro?<BR><BR>Herbert<BR>-------------- next part --------------<BR>A non-text attachment was scrubbed...<BR>Name: pie0.png<BR>Type: image/png<BR>Size: 2197 bytes<BR>Desc: not available<BR>Url : <A href="http://tug.org/pipermail/pstricks/attachments/20080619/577e15b6/attachment.png" target=_blank>http://tug.org/pipermail/pstricks/attachments/20080619/577e15b6/attachment.png</A> <BR><BR>------------------------------<BR><BR>_______________________________________________<BR>PSTricks mailing list<BR><A href="mailto:PSTricks@tug.org" ymailto="mailto:PSTricks@tug.org">PSTricks@tug.org</A><BR><A href="http://tug.org/mailman/listinfo/pstricks" target=_blank>http://tug.org/mailman/listinfo/pstricks</A><BR><BR><BR>End of PSTricks
Digest, Vol 65, Issue 22<BR>****************************************<BR></DIV></div><br>
</body></html>