![pst-circ 中的自耦变压器?](https://linux22.com/image/300276/pst-circ%20%E4%B8%AD%E7%9A%84%E8%87%AA%E8%80%A6%E5%8F%98%E5%8E%8B%E5%99%A8%EF%BC%9F.png)
我怎样才能用 pst-circ 画一个自耦变压器,看起来像这样\transformer
?自耦变压器看起来像:
我尝试用线圈,但它看起来不像\transformer
上述文档的 MWE 代码如下:
% !TeX encoding = UTF-8
% !TeX program = xelatex
\documentclass{scrartcl}
\usepackage{pstricks}
\usepackage{pst-circ}
\begin{document}
\begin{pspicture}(0,0)(15,15)
\pnodes(3,7){T1P1}(3,3){T1P2}(5,7){T1S1}(5,3){T1S2}
\pnodes(8,7){T2P1}(8,3){T2P2}(10,7){T2S1}(10,3){T2S2}
\coil[dipolestyle=curved](T1P1)(T1P2){}
\psline{->}(4,5)(3.3,5)
\transformer[primarylabel={230},secondarylabel={5000}](T2P1)(T2P2)(T2S1)(T2S2){$T_2$}
\end{pspicture}
\end{document}
答案1
这里有一个“启动器”:
\documentclass{scrartcl}
\usepackage{pst-circ,pst-coil}
\begin{document}
\begin{pspicture}(0,0)(15,15)
\pnodes(3,7){T1P1}(3,3){T1P2}(5,7){T1S1}(5,3){T1S2}
\pnodes(8,7){T2P1}(5,5){t2s2}(8,3){T2P2}(10,7){T2S1}(10,3){T2S2}
\pccoil[coilwidth=0.65,coilheight=0.4](T1P1)(T1P2)
\pcline[offset=-0.4,nodesep=0.5](T1P1)(T1P2)
\pcline[offset=-0.5,nodesep=0.5](T1P1)(T1P2)
\pccoil[coilwidth=0.65,coilheight=0.4](t2s2)(T1S2)
\psline{<-}(3.3,5)(t2s2)
\end{pspicture}
\end{document}