[pstricks] pst-circ

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sat Jun 15 07:47:38 CEST 2013


Am 14.06.2013 16:02, schrieb Przemysław Białkowski:
>
> I fancy the shapes of elements that you have created in pst-circ package.
> Although I have very little knowledge about PSTricks I try to do my best with circuits.
> However the following things make me sleepless:
>
> Code example:
>
> \documentclass{article}
> \usepackage{pst-circ}
> \psset{mathlabel,labelstyle=\tt}
> \psset{linewidth=1pt}\documentclass{article}
\usepackage{pst-circ}
\psset{mathlabel,labelstyle=\tt}
\psset{linewidth=1pt}

\def\pcTran(#1)(#2){\psline(#1)(#2|#1)(#2)}
\psset{circedge=\pcTran,connectingdot=false}

Herbert

> \begin{document}
> \begin{pspicture}[showgrid=false](10,10)
>      \pnode(1,1){G1}\pnode(6,1){G2}\pnode(7.5,1){G3}
>      \newground[arrows=o](G1)
>      \newground(G2)
>      \newground(G3)
>      \pnode(1,3){D1u}\pnode(7,3){T1B}
>      \pnode(0,3){IB}\pnode(4,4){T2B}
>      \newdiode(G1)(D1u){D1}\qdisk(D1u){2pt}
>      \transistor[TRot=270,arrows=-o](T2B)(IB)(T1B)
>      \pnode(8,7){O1}%junction to out
>      \transistor(T1B)(G3)(O1)
>      \pnode(1,6){D2u}
>      \pnode(1,4){G4}
>      \newground(G4)
>      \newdiode(G4)(D2u){D2}\qdisk(D2u){2pt}
>      \pnode(2.5,7){T4B}
>      \pnode(0,6){IA}
>      \pnode(5.5,5){T3B}
>      \pnode(6,7){R3d}
>      \transistor[TRot=270,arrows=-o](T4B)(IA)(T3B)
>      \uput[90](IA){$\mathtt{A}$}
>      \transistor(T3B)(G2)(R3d)
>      \uput[90](IB){$\mathtt{B}$}
>      \pnode(2.5,10){VCC1}
>      \pnode(4,10){VCC2}
>      \pnode(6,10){VCC3}
>      \resistor[arrows=o-](VCC1)(T4B){4{,}7k\Omega}
>      \resistor[arrows=o-](VCC2)(T2B){4{,}7k\Omega}
>      \resistor[arrows=o-](VCC3)(R3d){100\Omega}
>      \wire[arrows=*-o](R3d)(O1)
>      \uput[90](O1){$\mathtt{OUT}$}
>      \qdisk(7.5,7){2pt}
> \end{pspicture}
> \end{document}
>
> 1) The extra lines attached to collectors of rotated (270 deg) transistors.
>     I read in manual that we have to be careful with tripole macros,
>     will it be resolved in the future or is it a language limitation?
> 2) The ground has a dot which is not always necessary. Is there any way to remove it?
>     I tried [arrows=-] :-(
>
> Best regards,
>



More information about the PSTricks mailing list