答案1
来源基本上是圆形的circuitikz
,因此“标准”解决方案将是这样的:
\documentclass[border=10pt]{standalone}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\node[nfet, rotate=90](N){};
\draw (N.G) -- ++(0,-1) to[sqV, l=PWM] ++(0,-1) node[ground]{};
\end{circuitikz}
\end{document}
如果你想要方形的东西,你可以用普通的 Ti 画出来钾Z 命令(记住, acircuitikz
只是一个tikzpicture
):
\documentclass[border=10pt]{standalone}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\node[nfet, rotate=90](N){};
\node[draw, thick, minimum width=1cm, minimum height=1cm](B) at ([yshift=-2cm]N.G) {};
\draw (B.north) -- (N.G);
\node [below] at (B.north) {PWM};
\draw (B.south west) ++(0.1,0.1) -| ++(0.2,0.4) -| ++(0.2,-0.4) -| ++(0.2,0.4) -| ++(0.2,-0.4);
\end{circuitikz}
\end{document}