如何绘制如图所示的三相变压器?
我最多只能制作出以下代码,其效果如下:
\documentclass{article}
\usepackage{circuitikz}
\usepackage{tikz}
\usepackage{gensymb}
\begin{document}
\begin{circuitikz}% default line thickness
\draw
[ultra thick] (0,-1) -- (0,1);
\draw (0,0) to[short](4,0)
(4,0) node[americaninductorshape, anchor=midtap, rotate=-90](L1){}
++(0.5,0)
node[americaninductorshape, rotate=90](L2){} (L2.midtap)
to[short] (5.5,0);
\draw [ultra thick] (5.5,-1) -- (5.5,1);
\end{circuitikz}
\end{document}
答案1
像这样?
\documentclass{standalone}
\usepackage{circuitikz}
\usepackage{tikz}
%\usepackage{gensymb}
\begin{document}
\begin{circuitikz}
\ctikzset{inductors/coils=2}
\draw[ultra thick] (0,-1) -- (0,1)
node[draw,thin,circle,above=0.5ex, pos=1] {\textbf{1}};% you could add some [xshift] if desired
\draw (0,0) to[short](4,0)
(4,0) node[americaninductorshape, anchor=midtap, rotate=-90](L1){}
++(0.6,0)
node[americaninductorshape, rotate=90](L2){} (L2.midtap)
to[short] (5.5,0);
\draw [ultra thick] (5.5,-1) -- (5.5,1)
node[draw,thin,circle,above=0.5ex, pos=1] {\textbf{2}};% reduce [inner sep] to make circle smaller
\node[above, font=\large] at (L1.west) {1};
\node[above, font=\large] at (L2.east) {1};
\node[above, font=\large] at ($(L1.west)!0.5!(L2.east)$) {:};
\node[below, font=\large] at ($(L1.east)!0.5!(L2.west)$) {$\textbf{\textsf{T}}_1$};
\end{circuitikz}
\end{document}