[pstricks] pst-circ

Herbert Voss Herbert.Voss at FU-Berlin.DE
Mon Dec 1 15:44:55 CET 2008


Patrice Mégret schrieb:

> Your solution below works fine for pst-tree and pst-cir (v1.49) but in the following example with a transistor, we can see that the transistor has now more 'corners' than in the version v1.47, so that previous electrical schemes will become changed. By the way, just take a look at the v1.49 pst-circ doc on pages 6 and 11 and you will see the strange behavior of transistor compared to v1.47. http://perce.de/LaTeX/pst-circ/pst-circ-doc.pdf 
> 
> You can try my example with pst-circ 1.47 and then 1.49 to see the difference on the transistor. (it is important to load pst-tree and then pst-circ)
> This example works OK (except design of transistor) with the tree and the electrical scheme if pst-tree, then pst-circ 1.49 and the code you provide between makeatletter. 

Patrice,
I get the attached image with

\documentclass{article}
\listfiles
\usepackage{pst-tree}
\usepackage{pst-circ}
\SpecialCoor

\begin{document}

\pstree[levelsep=1.5cm,treesep=0.5cm,nodesep=3pt]{%
     \pstree{\Tr{Main tree}}{%
 		\Tr{Item 1}%
 		\Tr{Item 2}%
 		\pstree{\Tr{Sub tree 3}}{%
 			\Tr{Sub item 1}%
 			\Tr{Sub item 2}%
 		}%
 	}%
 }%

\vspace{2cm}

\begin{pspicture}(5,3)%\psgrid
  \pnode(0,1.5){A}
  \pnode(5,0){B}
  \pnode(5,3){C}
  \transistor[basesep=2cm,transistoribaselabel=$i_B$,
    transistoricollectorlabel=$i_C$,
    transistoriemitterlabel=$i_E$](A)(B)(C)
\end{pspicture}

\end{document}

and the package order makes no difference.

I used these files:
http://perce.de/PSTricks/pst-circ/pst-circ.tex
http://perce.de/PSTricks/base/pstricks.tex
http://perce.de/PSTricks/base/pst-tree.tex

Herbert


More information about the PSTricks mailing list