[pstricks] pst-circ

Patrice Mégret patrice.megret at fpms.ac.be
Fri Aug 26 08:58:32 CEST 2005


Dear Herbert,

 

I have a small trouble with pst-circ when I draw a wire with the command
\wire(N1)(N2).

 

In principle the command \wire(N1)(N2) should draw a simple line (i.e.
without arrow) from node N1 to node N2 and the command
\wire[intensity](N1)(N2) should do the same but with an arrow.

 

The simple example below shows that an arrow is always drawn with \wire.

 

 

\documentclass[10pt,a4paper]{article}

 

\usepackage{pst-circ}

\listfiles

\begin{document}

\psset{showgrid=true}

\begin{pspicture}(7,-1)(10,6)

\dotnode(8,0){N1}

\dotnode(9,0){N2}

\dotnode(8,1){N3}

\dotnode(9,1){N4}

\dotnode(8,2){N5}

\dotnode(9,2){N6}

\wire(N1)(N2)

\wire[intensity,directconvention=true](N3)(N4)

\wire[intensity,directconvention=false](N5)(N6)

\end{pspicture}

\end{document}

 

See result in file essai.ps

 

*File List*

 article.cls    2001/04/21 v1.4e Standard LaTeX document class

  size10.clo    2001/04/21 v1.4e Standard LaTeX file (size option)

pst-circ.sty    2004/10/31 package wrapper for pst-circ.tex (hv)

pstricks.sty    2005/06/02 v0.23 LaTeX wrapper for `PSTricks' (RN,HV)

pstricks.tex    2005/08/13 v1.10 `PSTricks' (tvz)

  xcolor.sty    2005/03/24 v2.02 LaTeX color extensions (UK)

   color.cfg    2001/08/31 v1.1 color configuration of teTeX/TeXLive

   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)

pst-circ.tex    2005/04/03 v1.39 `PST-circ' (CJ,hv)

pst-xkey.tex    2005/02/22 v1.5 PSTricks specialization of xkeyval (HA)

 xkeyval.sty    2005/05/31 v2.5a package option processing (HA)

 xkeyval.tex    2005/05/31 v2.5a key=value parser (HA)

 ***********

 

 

It seems to me that the problem is in the macro \pst at draw@wire in the test
\ifx\psk at I@label\@empty\else\psset{intensity=true}\fi

 

If I replace this line by
\if\psk at I@label\@empty\else\psset{intensity=true}\fi the behaviour is
correct.

 

By the way, I also discovered that the arrow is not the same depending on
the key directconvention, and this effect is the same for other components.
So I have also added arrowinset=0 in the macros \pst at draw@wire and
\pst at intensity

 

I join a new file pst-circ-pm with my modfications as well as the same
example (essai-pm.ps) with this new code. As I am not an expert in tex
programming, I am not sure that replacing \ifx by \if has no side effect.
Could you please let me know your opinion.

 

Best regards,

 

Patrice

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20050826/3e1e42c0/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: essai.ps
Type: application/postscript
Size: 61100 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20050826/3e1e42c0/attachment.ps 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: essai-pm.ps
Type: application/postscript
Size: 59718 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20050826/3e1e42c0/attachment-0001.ps 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pst-circ-pm.tex
Type: application/octet-stream
Size: 66834 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20050826/3e1e42c0/attachment.obj 


More information about the PSTricks mailing list