[pstricks] PSTricks Digest, Vol 65, Issue 22

Mariana Velinova velinova_mariana at yahoo.com
Thu Jun 19 10:00:56 CEST 2008


Blagodarq, ama e za daskali po profesionalna podgotowka.


----- Original Message ----
From: "pstricks-request at tug.org" <pstricks-request at tug.org>
To: pstricks at tug.org
Sent: Thursday, June 19, 2008 12:45:48 AM
Subject: PSTricks Digest, Vol 65, Issue 22

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. Re: Testing a number (John Smith)
  2. Re: conceptual question for pst-optexp (Christoph Bersch)
  3. Re: conceptual question for pst-optexp (Herbert Voss)
  4. Re: [Fwd: CTAN package update: pst-func] (Jean-C?me Charpentier)
  5. \psDEBUG in pstricks-add (John Smith)
  6. Re: \psDEBUG in pstricks-add (Herbert Voss)
  7. Re: \psDEBUG in pstricks-add (Christoph Bersch)
  8. Re: \psDEBUG in pstricks-add (John Smith)
  9. pst-solides3d (Herbert Voss)


----------------------------------------------------------------------

Message: 1
Date: Wed, 18 Jun 2008 10:26:43 +0000
From: John Smith <chessfan123 at hotmail.com>
Subject: Re: [pstricks] Testing a number
To: Graphics with PSTricks <pstricks at tug.org>
Message-ID: <BAY125-W4B97125F629A0C8F88045F8AB0 at phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"



To answer my own question, this works.

\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.



From: chessfan123 at hotmail.comTo: pstricks at tug.orgDate: Wed, 18 Jun 2008 07:19:21 +0000Subject: Re: [pstricks] Testing a number


Herbert> Date: Wed, 18 Jun 2008 08:47:23 +0200> From: Herbert.Voss at FU-Berlin.DE> To: pstricks at tug.org> 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.

Hotmail on your mobile. Never miss another e-mail with 
_________________________________________________________________
Never miss another e-mail with Hotmail on your mobile.
http://www.livelife.ninemsn.com.au/article.aspx?id=343869
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20080618/5986bd18/attachment-0001.html 

------------------------------

Message: 2
Date: Wed, 18 Jun 2008 13:13:13 +0200
From: Christoph Bersch <usenet at bersch.net>
Subject: Re: [pstricks] conceptual question for pst-optexp
To: Graphics with PSTricks <pstricks at tug.org>
Message-ID: <4858EDC9.3090309 at bersch.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Herbert Voss schrieb:
> Christoph schrieb:
>  > Referring to this and to simplify the access to these nodes I want to
>  > define a macro that connects two components:
>  >
>  > \optBeam{compname1}{compname2}
>  >
>  > This is no problem, but I was thinking that it would be nice to allow
>  > using a node or coordinate pair instead of one compname:
>  >
>  > \optBeam{(0,1)}{compname2}
>  > or
>  > \optBeam{compname1}{(4,4)}
>  >
>  > would then connect a node with a component. How can I implement such a
>  > macro. My TeX knowledge is still somewhat limited, so I need some help
>  > on how to do this best :-)
> 
> this is way how pst-node works. Look for \ncline as an example.
> With SpecialCoor all types are checked.

Hmm, the following small example does not work. It compiles but it does 
not draw the line

\listfiles
\documentclass{article}
\usepackage{pst-node}
\SpecialCoor
\begin{document}
\begin{pspicture}(2,2)
\ncline{0,0}{1,1}
\end{pspicture}
\end{document}

The files I use are the most recent ones:

  *File List*
  article.cls    2005/09/16 v1.4f Standard LaTeX document class
  size10.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
pst-node.sty    2006/01/01 package wrapper for pst-node.tex
pstricks.sty    2008/01/24 v0.37 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2008/06/17 v1.24 `PSTricks' (tvz)
  xcolor.sty    2005/12/21 v2.09 LaTeX color extensions (UK)
    color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
    dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pst-node.tex    2000/11/09 97 patch 11 `pst-node' (tvz)
  ***********

Do you know what is going wrong there?

Thank you,
Christoph


------------------------------

Message: 3
Date: Wed, 18 Jun 2008 13:43:26 +0200
From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
Subject: Re: [pstricks] conceptual question for pst-optexp
To: Graphics with PSTricks <pstricks at tug.org>
Message-ID: <4858F4DE.5090500 at FU-Berlin.DE>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Christoph Bersch schrieb:

>> this is way how pst-node works. Look for \ncline as an example.
>> With SpecialCoor all types are checked.
> 
> Hmm, the following small example does not work. It compiles but it does 
> not draw the line

> Do you know what is going wrong there?

sorry I thought of \pcline but ...
With a little modification ist is possible:

\listfiles
\documentclass{article}
\usepackage{pst-node}
\makeatletter
\def\NCLine{\pst at object{NCLine}}
\def\NCLine at i{\check at arrow{\NCLine at ii}}
\def\NCLine at ii#1#2{%
  \pst at getcoor{#1}\pst at tempA
  \pst at getcoor{#2}\pst at tempB
  \begingroup
  \use at par
  \psline(!\pst at tempA\space \tx at UserCoor)(!\pst at tempB\space 
\tx at UserCoor)
  \endgroup
}
\makeatother
\SpecialCoor
\begin{document}

\begin{pspicture}[showgrid=true](2,2)
\pnode(2,2){A}
\NCLine[arrows=->]{0,0}{A}
\NCLine{<-}{0,1}{A}
\end{pspicture}

\end{document}


Herbert


------------------------------

Message: 4
Date: Wed, 18 Jun 2008 14:21:31 +0200
From: Jean-C?me Charpentier     <jean-come.charpentier at wanadoo.fr>
Subject: Re: [pstricks] [Fwd: CTAN package update: pst-func]
To: Graphics with PSTricks <pstricks at tug.org>
Message-ID: <4858FDCB.8080106 at wanadoo.fr>
Content-Type: text/plain; charset=ISO-8859-1

Herbert Voss a ?crit :
> with thanks to jean-C\"ome Charpentier for Thomae's function...

With more thanks to Herbert than to Jean-C?me!

BTW Jean-C?me is Jean-C\^ome, not Jean-C\"ome :-)

  Jean-C?me (then) Charpentier



------------------------------

Message: 5
Date: Thu, 19 Jun 2008 06:40:58 +0000
From: John Smith <chessfan123 at hotmail.com>
Subject: [pstricks] \psDEBUG in pstricks-add
To: <pstricks at tug.org>
Message-ID: <BAY125-W4113AB87BFB12E36CCD896F8AA0 at phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"


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?

Thanks.
_________________________________________________________________
Never miss another e-mail with Hotmail on your mobile.
http://www.livelife.ninemsn.com.au/article.aspx?id=343869
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20080619/c0e8ce38/attachment-0001.html 

------------------------------

Message: 6
Date: Thu, 19 Jun 2008 09:12:18 +0200
From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
Subject: Re: [pstricks] \psDEBUG in pstricks-add
To: Graphics with PSTricks <pstricks at tug.org>
Message-ID: <485A06D2.5050209 at FU-Berlin.DE>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

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
http://www.ctan.org/get/graphics/pstricks/base/generic/pstricks.tex

Herbert


------------------------------

Message: 7
Date: Thu, 19 Jun 2008 09:14:20 +0200
From: Christoph Bersch <usenet at bersch.net>
Subject: Re: [pstricks] \psDEBUG in pstricks-add
To: Graphics with PSTricks <pstricks at tug.org>
Message-ID: <485A074C.5040407 at bersch.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

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.

the \psDEBUG macro is defined in the latest pstricks version 1.24 
(17.6.2008)

Christoph


------------------------------

Message: 8
Date: Thu, 19 Jun 2008 07:15:10 +0000
From: John Smith <chessfan123 at hotmail.com>
Subject: Re: [pstricks] \psDEBUG in pstricks-add
To: Graphics with PSTricks <pstricks at tug.org>
Message-ID: <BAY125-W114F5C37F4951E37F196D6F8AA0 at phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"


Thanks Herbert.> Date: Thu, 19 Jun 2008 09:12:18 +0200> From: Herbert.Voss at FU-Berlin.DE> To: pstricks at tug.org> 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> http://www.ctan.org/get/graphics/pstricks/base/generic/pstricks.tex> > Herbert> _______________________________________________> PSTricks mailing list> PSTricks at tug.org> http://tug.org/mailman/listinfo/pstricks
_________________________________________________________________
Never miss another e-mail with Hotmail on your mobile.
http://www.livelife.ninemsn.com.au/article.aspx?id=343869
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20080619/cde5750a/attachment-0001.html 

------------------------------

Message: 9
Date: Thu, 19 Jun 2008 09:45:42 +0200
From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
Subject: [pstricks] pst-solides3d
To: Graphics with PSTricks <pstricks at tug.org>
Message-ID: <485A0EA6.80401 at FU-Berlin.DE>
Content-Type: text/plain; charset="utf-8"

Hi all,
pstricks-add definies the macro \psPie (see pp 8-9 of
http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pstricks-add/pstricks-add-doc.pdf
I tried this also for three dimensional pies, but
pst-3dplot doesn't support hidden surfaces, which makes
it impossible to define a pie which can have single
outraged parts. A simple example is attached, which works
in fact of only two pieces. The macro is called as

\psPie[<options>]%
  {comma separated value list}% the data
  {comma separated value list}% outraged pieces
  {radius}

for the options see the documentation. However, I think
it must be possible to have a 3d solution with pst-solides3d
with \psPieIIID and the same syntax. Can you provide such
a macro?

Herbert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pie0.png
Type: image/png
Size: 2197 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20080619/577e15b6/attachment.png 

------------------------------

_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks


End of PSTricks Digest, Vol 65, Issue 22
****************************************



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20080619/a773f2a2/attachment.html 


More information about the PSTricks mailing list